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

Commit ffdc7aed authored by Amith Yamasani's avatar Amith Yamasani Committed by Gerrit Code Review
Browse files

Merge "avoid crashing system serer process"

parents bf8de6a3 7d4adea7
Loading
Loading
Loading
Loading
+6 −1
Original line number Original line Diff line number Diff line
@@ -408,7 +408,12 @@ class GlobalActions implements DialogInterface.OnDismissListener, DialogInterfac
    /** {@inheritDoc} */
    /** {@inheritDoc} */
    public void onDismiss(DialogInterface dialog) {
    public void onDismiss(DialogInterface dialog) {
        if (SHOW_SILENT_TOGGLE) {
        if (SHOW_SILENT_TOGGLE) {
            try {
                mContext.unregisterReceiver(mRingerModeReceiver);
                mContext.unregisterReceiver(mRingerModeReceiver);
            } catch (IllegalArgumentException ie) {
                // ignore this
                Log.w(TAG, ie);
            }
        }
        }
    }
    }