Merge "Retain expanded state across more than one violent update." into jb-dev
This commit is contained in:
@ -913,6 +913,7 @@ public abstract class BaseStatusBar extends SystemUI implements
|
|||||||
if (wasExpanded) {
|
if (wasExpanded) {
|
||||||
final NotificationData.Entry newEntry = mNotificationData.findByKey(key);
|
final NotificationData.Entry newEntry = mNotificationData.findByKey(key);
|
||||||
expandView(newEntry, true);
|
expandView(newEntry, true);
|
||||||
|
newEntry.setUserExpanded(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -65,6 +65,12 @@ public class NotificationData {
|
|||||||
public boolean userExpanded() {
|
public boolean userExpanded() {
|
||||||
return NotificationData.getUserExpanded(row);
|
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 ArrayList<Entry> mEntries = new ArrayList<Entry>();
|
||||||
private final Comparator<Entry> mEntryCmp = new Comparator<Entry>() {
|
private final Comparator<Entry> mEntryCmp = new Comparator<Entry>() {
|
||||||
|
Reference in New Issue
Block a user