Merge "Fix NPE in BaseStatusBar."
This commit is contained in:
committed by
Android (Google) Code Review
commit
f6475c7204
@@ -1136,8 +1136,9 @@ public abstract class BaseStatusBar extends SystemUI implements
|
|||||||
StatusBarNotification notification, boolean isHeadsUp) {
|
StatusBarNotification notification, boolean isHeadsUp) {
|
||||||
final RemoteViews contentView = notification.getNotification().contentView;
|
final RemoteViews contentView = notification.getNotification().contentView;
|
||||||
final RemoteViews bigContentView = notification.getNotification().bigContentView;
|
final RemoteViews bigContentView = notification.getNotification().bigContentView;
|
||||||
final RemoteViews publicContentView
|
final Notification publicVersion = notification.getNotification().publicVersion;
|
||||||
= notification.getNotification().publicVersion.contentView;
|
final RemoteViews publicContentView = publicVersion != null ? publicVersion.contentView
|
||||||
|
: null;
|
||||||
|
|
||||||
// Reapply the RemoteViews
|
// Reapply the RemoteViews
|
||||||
contentView.reapply(mContext, entry.expanded, mOnClickHandler);
|
contentView.reapply(mContext, entry.expanded, mOnClickHandler);
|
||||||
|
|||||||
Reference in New Issue
Block a user