Make "Add Network" dialog fullscreen.

Bug: 35324632
Test: manual

Change-Id: Ideac214eb97d774878ee772daca2b7efceba95b4
This commit is contained in:
Eric Schwarzenbach
2017-07-14 15:03:32 -07:00
parent d75a692793
commit c86f5bbd00

View File

@@ -53,7 +53,9 @@ class WifiDialog extends AlertDialog implements WifiConfigUiBase, DialogInterfac
public WifiDialog(Context context, WifiDialogListener listener, AccessPoint accessPoint,
int mode) {
super(context);
// conditionally sets the theme to fullscreen dialog for "Add Network"
super(context,
mode == WifiConfigUiBase.MODE_CONNECT ? R.style.Theme_Settings_NoActionBar : 0);
mMode = mode;
mListener = listener;
mAccessPoint = accessPoint;