am 42a46157: Fix 3379239: Catch exceptions from workaround for OOM.
* commit '42a461570b9c5502959e429c4f16ca5ca860c4f2': Fix 3379239: Catch exceptions from workaround for OOM.
This commit is contained in:
@@ -80,7 +80,11 @@ public class DigitalClock extends LinearLayout {
|
||||
}
|
||||
});
|
||||
} else {
|
||||
mContext.unregisterReceiver(this);
|
||||
try {
|
||||
mContext.unregisterReceiver(this);
|
||||
} catch (RuntimeException e) {
|
||||
// Shouldn't happen
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -124,7 +128,11 @@ public class DigitalClock extends LinearLayout {
|
||||
digitalClock.setDateFormat();
|
||||
digitalClock.updateTime();
|
||||
} else {
|
||||
mContext.getContentResolver().unregisterContentObserver(this);
|
||||
try {
|
||||
mContext.getContentResolver().unregisterContentObserver(this);
|
||||
} catch (RuntimeException e) {
|
||||
// Shouldn't happen
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user