Merge "Fix crashes after notifying bad notification" into nyc-mr1-dev

This commit is contained in:
Selim Cinek
2016-10-13 00:36:27 +00:00
committed by Android (Google) Code Review

View File

@@ -1706,12 +1706,6 @@ public abstract class BaseStatusBar extends SystemUI implements
sbn.getPackageContext(mContext), sbn.getPackageContext(mContext),
contentContainerPublic, mOnClickHandler); contentContainerPublic, mOnClickHandler);
} }
}
catch (RuntimeException e) {
final String ident = sbn.getPackageName() + "/0x" + Integer.toHexString(sbn.getId());
Log.e(TAG, "couldn't inflate view for notification " + ident, e);
return false;
}
if (contentViewLocal != null) { if (contentViewLocal != null) {
contentViewLocal.setIsRootNamespace(true); contentViewLocal.setIsRootNamespace(true);
@@ -1729,6 +1723,12 @@ public abstract class BaseStatusBar extends SystemUI implements
publicViewLocal.setIsRootNamespace(true); publicViewLocal.setIsRootNamespace(true);
contentContainerPublic.setContractedChild(publicViewLocal); contentContainerPublic.setContractedChild(publicViewLocal);
} }
}
catch (RuntimeException e) {
final String ident = sbn.getPackageName() + "/0x" + Integer.toHexString(sbn.getId());
Log.e(TAG, "couldn't inflate view for notification " + ident, e);
return false;
}
// Extract target SDK version. // Extract target SDK version.
try { try {