Fix notifications transitioning from small->big.
We'll have to go back and tweak this when we add a more sophisticated switch from contentView to bigContentView, but for now, this ought to detect that the notification has gotten bigger (or smaller). Change-Id: I3816fe8ed321569d1ce07d8a62cb08a434e55c2d
This commit is contained in:
@@ -591,10 +591,14 @@ public class PhoneStatusBar extends BaseStatusBar {
|
||||
}
|
||||
|
||||
final StatusBarNotification oldNotification = oldEntry.notification;
|
||||
final RemoteViews oldContentView = oldNotification.notification.contentView;
|
||||
|
||||
final RemoteViews contentView = notification.notification.contentView;
|
||||
|
||||
// XXX: modify when we do something more intelligent with the two content views
|
||||
final RemoteViews oldContentView = (oldNotification.notification.bigContentView != null)
|
||||
? oldNotification.notification.bigContentView
|
||||
: oldNotification.notification.contentView;
|
||||
final RemoteViews contentView = (notification.notification.bigContentView != null)
|
||||
? notification.notification.bigContentView
|
||||
: notification.notification.contentView;
|
||||
|
||||
if (DEBUG) {
|
||||
Slog.d(TAG, "old notification: when=" + oldNotification.notification.when
|
||||
|
||||
@@ -867,9 +867,14 @@ public class TabletStatusBar extends BaseStatusBar implements
|
||||
}
|
||||
|
||||
final StatusBarNotification oldNotification = oldEntry.notification;
|
||||
final RemoteViews oldContentView = oldNotification.notification.contentView;
|
||||
|
||||
final RemoteViews contentView = notification.notification.contentView;
|
||||
// XXX: modify when we do something more intelligent with the two content views
|
||||
final RemoteViews oldContentView = (oldNotification.notification.bigContentView != null)
|
||||
? oldNotification.notification.bigContentView
|
||||
: oldNotification.notification.contentView;
|
||||
final RemoteViews contentView = (notification.notification.bigContentView != null)
|
||||
? notification.notification.bigContentView
|
||||
: notification.notification.contentView;
|
||||
|
||||
if (DEBUG) {
|
||||
Slog.d(TAG, "old notification: when=" + oldNotification.notification.when
|
||||
|
||||
Reference in New Issue
Block a user