Merge "Retain expanded state across more than one violent update." into jb-dev

This commit is contained in:
Chris Wren
2012-06-28 11:40:34 -07:00
committed by Android (Google) Code Review
2 changed files with 7 additions and 0 deletions

View File

@ -913,6 +913,7 @@ public abstract class BaseStatusBar extends SystemUI implements
if (wasExpanded) {
final NotificationData.Entry newEntry = mNotificationData.findByKey(key);
expandView(newEntry, true);
newEntry.setUserExpanded(true);
}
}

View File

@ -65,6 +65,12 @@ public class NotificationData {
public boolean userExpanded() {
return NotificationData.getUserExpanded(row);
}
/**
* Set the flag indicating that this was manually expanded by the user.
*/
public boolean setUserExpanded(boolean userExpanded) {
return NotificationData.setUserExpanded(row, userExpanded);
}
}
private final ArrayList<Entry> mEntries = new ArrayList<Entry>();
private final Comparator<Entry> mEntryCmp = new Comparator<Entry>() {