Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 08011cdf authored by dooyoung.hwang's avatar dooyoung.hwang Committed by android-build-merger
Browse files

Fix crashes after notifying bad notification

am: 78c41141

Change-Id: I4d72feb9a40b99c5b40307ad01d708b3a66d1f54
parents f3eb11bd 78c41141
Loading
Loading
Loading
Loading
+17 −17
Original line number Diff line number Diff line
@@ -1706,12 +1706,6 @@ public abstract class BaseStatusBar extends SystemUI implements
                        sbn.getPackageContext(mContext),
                        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) {
                contentViewLocal.setIsRootNamespace(true);
@@ -1729,6 +1723,12 @@ public abstract class BaseStatusBar extends SystemUI implements
                publicViewLocal.setIsRootNamespace(true);
                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.
        try {