diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java index bbfcf31e7c2ff..b49ba0cde7538 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java @@ -121,6 +121,10 @@ public class NotificationData { return row.getPublicLayout().getContractedChild(); } + public View getAmbientContentView() { + return row.getPrivateLayout().getAmbientChild(); + } + public boolean cacheContentViews(Context ctx, Notification updatedNotification, boolean isLowPriority) { boolean applyInPlace = false; diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java index 45fd7ec460467..663afe9e3cfc0 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java @@ -7019,6 +7019,7 @@ public class StatusBar extends SystemUI implements DemoMode, final RemoteViews bigContentView = entry.cachedBigContentView; final RemoteViews headsUpContentView = entry.cachedHeadsUpContentView; final RemoteViews publicContentView = entry.cachedPublicContentView; + final RemoteViews ambientContentView = entry.cachedAmbientContentView; // Reapply the RemoteViews contentView.reapply(mContext, entry.getContentView(), mOnClickHandler); @@ -7036,6 +7037,10 @@ public class StatusBar extends SystemUI implements DemoMode, publicContentView.reapply(sbn.getPackageContext(mContext), entry.getPublicContentView(), mOnClickHandler); } + if (ambientContentView != null && entry.getAmbientContentView() != null) { + ambientContentView.reapply(sbn.getPackageContext(mContext), + entry.getAmbientContentView(), mOnClickHandler); + } // update the contentIntent mNotificationClicker.register(entry.row, sbn);