Fixes Telephony ProgressDialog to use system theme
PhoneUtil has to do explicit work when creating dialogs
to inherit system themes. It does that work across the
various AlertDialogs, but doesn't do the work for
ProgressDialogs, causing system-dependent (currently
watch only) configurations to be lost. This change adds
the explicit setting of themes to those Dialogs.
Bug:23387146
Change-Id: I74a257c6a4e3c11fc51416e67c3b17b438c51bab
diff --git a/src/com/android/phone/PhoneUtils.java b/src/com/android/phone/PhoneUtils.java
index e1f8036..1fa886c 100644
--- a/src/com/android/phone/PhoneUtils.java
+++ b/src/com/android/phone/PhoneUtils.java
@@ -863,7 +863,7 @@
if (DBG) log("running USSD code, displaying indeterminate progress.");
// create the indeterminate progress dialog and display it.
- ProgressDialog pd = new ProgressDialog(context);
+ ProgressDialog pd = new ProgressDialog(context, THEME);
pd.setMessage(context.getText(R.string.ussdRunning));
pd.setCancelable(false);
pd.setIndeterminate(true);
@@ -934,7 +934,7 @@
// create the progress dialog, make sure the flags and type are
// set correctly.
- ProgressDialog pd = new ProgressDialog(app);
+ ProgressDialog pd = new ProgressDialog(app, THEME);
pd.setTitle(title);
pd.setMessage(text);
pd.setCancelable(false);