Change the Theme of the ECBM AlertDialog
The ECBM notification dialog was using an
out of date AlertDialog theme, modified
to use the default theme.
Bug: b/78300442
Test: exit ecbm, look at AlertDialog
Change-Id: I4a418330db3b84927a17aad8cee7e9ea02ecda16
diff --git a/src/com/android/phone/EmergencyCallbackModeExitDialog.java b/src/com/android/phone/EmergencyCallbackModeExitDialog.java
index 9d43d60..fd6510b 100644
--- a/src/com/android/phone/EmergencyCallbackModeExitDialog.java
+++ b/src/com/android/phone/EmergencyCallbackModeExitDialog.java
@@ -219,7 +219,8 @@
case EXIT_ECM_BLOCK_OTHERS:
case EXIT_ECM_DIALOG:
CharSequence text = getDialogText(mEcmTimeout);
- mAlertDialog = new AlertDialog.Builder(EmergencyCallbackModeExitDialog.this)
+ mAlertDialog = new AlertDialog.Builder(EmergencyCallbackModeExitDialog.this,
+ android.R.style.Theme_DeviceDefault_Dialog_Alert)
.setIcon(R.drawable.ic_emergency_callback_mode)
.setTitle(R.string.phone_in_ecm_notification_title)
.setMessage(text)
@@ -247,7 +248,8 @@
return mAlertDialog;
case EXIT_ECM_IN_EMERGENCY_CALL_DIALOG:
- mAlertDialog = new AlertDialog.Builder(EmergencyCallbackModeExitDialog.this)
+ mAlertDialog = new AlertDialog.Builder(EmergencyCallbackModeExitDialog.this,
+ android.R.style.Theme_DeviceDefault_Dialog_Alert)
.setIcon(R.drawable.ic_emergency_callback_mode)
.setTitle(R.string.phone_in_ecm_notification_title)
.setMessage(R.string.alert_dialog_in_ecm_call)