summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNivedita Sarkar <nsarkar@codeaurora.org>2015-11-17 20:48:18 -0800
committerSteve Kondik <steve@cyngn.com>2016-05-20 23:09:14 -0700
commitdd3ad8c1a0cb9247280d2c2600ba8570446a6b39 (patch)
tree08074aedc7465c2f6cb94f30be662759a898af46
parent99532f287145225dbf2f55bf5d1a659a3004319a (diff)
downloadpackages_apps_InCallUI-dd3ad8c1a0cb9247280d2c2600ba8570446a6b39.tar.gz
packages_apps_InCallUI-dd3ad8c1a0cb9247280d2c2600ba8570446a6b39.tar.bz2
packages_apps_InCallUI-dd3ad8c1a0cb9247280d2c2600ba8570446a6b39.zip
IMS-VT: Catch the exception when dismissing the zoom alert dialog
- When we dismiss the zoom alert dialog, any exception caused should not crash the phone process - Catch any exception that occurs when dismissing the zoom alert dialog and log it instead of letting it crash phone process Change-Id: I89b80e0bcf98385a6f71937e23417e61c117aa71 CRs-Fixed: 938992
-rw-r--r--src/com/android/incallui/InCallZoomController.java12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/com/android/incallui/InCallZoomController.java b/src/com/android/incallui/InCallZoomController.java
index b15319f1..4c1b6fe6 100644
--- a/src/com/android/incallui/InCallZoomController.java
+++ b/src/com/android/incallui/InCallZoomController.java
@@ -224,9 +224,15 @@ public class InCallZoomController implements InCallPresenter.IncomingCallListene
}
private void dismissAlertDialog() {
- if (mAlertDialog != null) {
- mAlertDialog.dismiss();
- mAlertDialog = null;
+ try {
+ if (mAlertDialog != null) {
+ mAlertDialog.dismiss();
+ mAlertDialog = null;
+ }
+ } catch (Exception e) {
+ // Since exceptions caused in zoom control dialog should not crash the phone process,
+ // we intentionally capture the exception and ignore.
+ Log.e(this, "dismissAlertDialog: Exception: " + e);
}
}