Skip to content

Commit a379eec

Browse files
dsandlerAndroid (Google) Code Review
authored andcommitted
Merge "Fix notifications transitioning from small->big."
2 parents c1c2ca0 + 84920cc commit a379eec

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -591,10 +591,14 @@ public void updateNotification(IBinder key, StatusBarNotification notification)
591591
}
592592

593593
final StatusBarNotification oldNotification = oldEntry.notification;
594-
final RemoteViews oldContentView = oldNotification.notification.contentView;
595-
596-
final RemoteViews contentView = notification.notification.contentView;
597594

595+
// XXX: modify when we do something more intelligent with the two content views
596+
final RemoteViews oldContentView = (oldNotification.notification.bigContentView != null)
597+
? oldNotification.notification.bigContentView
598+
: oldNotification.notification.contentView;
599+
final RemoteViews contentView = (notification.notification.bigContentView != null)
600+
? notification.notification.bigContentView
601+
: notification.notification.contentView;
598602

599603
if (DEBUG) {
600604
Slog.d(TAG, "old notification: when=" + oldNotification.notification.when

packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -867,9 +867,14 @@ public void updateNotification(IBinder key, StatusBarNotification notification)
867867
}
868868

869869
final StatusBarNotification oldNotification = oldEntry.notification;
870-
final RemoteViews oldContentView = oldNotification.notification.contentView;
871870

872-
final RemoteViews contentView = notification.notification.contentView;
871+
// XXX: modify when we do something more intelligent with the two content views
872+
final RemoteViews oldContentView = (oldNotification.notification.bigContentView != null)
873+
? oldNotification.notification.bigContentView
874+
: oldNotification.notification.contentView;
875+
final RemoteViews contentView = (notification.notification.bigContentView != null)
876+
? notification.notification.bigContentView
877+
: notification.notification.contentView;
873878

874879
if (DEBUG) {
875880
Slog.d(TAG, "old notification: when=" + oldNotification.notification.when

0 commit comments

Comments
 (0)