am ffdc7aed: Merge "avoid crashing system serer process"

* commit 'ffdc7aed5ec8f38706ddfad02d3df05493351083':
  avoid crashing system serer process
This commit is contained in:
Amith Yamasani
2012-12-15 14:57:40 -08:00
committed by Android Git Automerger

View File

@@ -408,7 +408,12 @@ class GlobalActions implements DialogInterface.OnDismissListener, DialogInterfac
/** {@inheritDoc} */
public void onDismiss(DialogInterface dialog) {
if (SHOW_SILENT_TOGGLE) {
mContext.unregisterReceiver(mRingerModeReceiver);
try {
mContext.unregisterReceiver(mRingerModeReceiver);
} catch (IllegalArgumentException ie) {
// ignore this
Log.w(TAG, ie);
}
}
}