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

* commit '2761ccd4799971b7ad696f6f94036ca16113c78d':
  Retain expanded state across more than one violent update.
This commit is contained in:
Chris Wren
2012-06-28 11:43:16 -07:00
committed by Android Git Automerger
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>() {