Merge "avoid crashing system serer process"
This commit is contained in:
5
policy/src/com/android/internal/policy/impl/GlobalActions.java
Normal file → Executable file
5
policy/src/com/android/internal/policy/impl/GlobalActions.java
Normal file → Executable file
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user