Fix crashes after notifying bad notification

am: 78c4114101

Change-Id: I4d72feb9a40b99c5b40307ad01d708b3a66d1f54
This commit is contained in:
dooyoung.hwang
2016-10-13 00:42:44 +00:00
committed by android-build-merger

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 {