diff options
author | 2022-11-03 18:53:33 +0000 | |
---|---|---|
committer | 2022-11-03 20:51:14 +0000 | |
commit | 59620886ff3e1274a2474ce0cb96bc72a2197fcd (patch) | |
tree | 787e217894c1c63bf4ed146992adb0fd5cced6ee /WifiDialog/src | |
parent | 106a410fc9f2c1f6b609f404f3dbe6791927fb27 (diff) |
Make wifi dialog style overlayable
Add an overlayable style for all wifi dialogs (excluding P2P invitation
received, which has the style wifi_p2p_invitation_received_dialog.
Updated-Overlayable: TRUE
Bug: 256685780
Test: atest WifiDialogManagerTest, update default value of wifi_dialog
and verify the changes appear via adb shell cmd wifi
launch-dialog-simple -t Title -m Message
Change-Id: Ia928e64ad1c9733393cb76b80c53c80bf2b4b829
Diffstat (limited to 'WifiDialog/src')
-rw-r--r-- | WifiDialog/src/com/android/wifi/dialog/WifiDialogActivity.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/WifiDialog/src/com/android/wifi/dialog/WifiDialogActivity.java b/WifiDialog/src/com/android/wifi/dialog/WifiDialogActivity.java index 786741c361..b73bee04be 100644 --- a/WifiDialog/src/com/android/wifi/dialog/WifiDialogActivity.java +++ b/WifiDialog/src/com/android/wifi/dialog/WifiDialogActivity.java @@ -501,7 +501,8 @@ public class WifiDialogActivity extends Activity { Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); } } - AlertDialog dialog = new AlertDialog.Builder(this) + AlertDialog dialog = new AlertDialog.Builder( + new ContextThemeWrapper(this, getStyleId("wifi_dialog"))) .setTitle(title) .setMessage(spannableMessage) .setPositiveButton(positiveButtonText, (dialogPositive, which) -> { @@ -578,7 +579,8 @@ public class WifiDialogActivity extends Activity { addRowToP2pDialog(group, getStringId("wifi_p2p_show_pin_message"), displayPin); } - AlertDialog dialog = new AlertDialog.Builder(this) + AlertDialog dialog = new AlertDialog.Builder( + new ContextThemeWrapper(this, getStyleId("wifi_dialog"))) .setTitle(getString(getStringId("wifi_p2p_invitation_sent_title"))) .setView(textEntryView) .setPositiveButton(getStringId("ok"), (dialogPositive, which) -> { |