Settings crashes on opening Wi-Fi Add network
Since Theme_Settings_NoActionBar extends from Theme.DeviceDefault.Settings, so it carshed when AppCompatDelegateImpl tried to get AppCompat theme from WifiDialog. Test: visual inspection, robo Change-Id: I751b771fdfa9ad2261baa5a06274f6bb0a70d677 Fixes: 111804691
This commit is contained in:
@@ -50,12 +50,12 @@ public class WifiDialog extends AlertDialog implements WifiConfigUiBase,
|
||||
private WifiConfigController mController;
|
||||
private boolean mHideSubmitButton;
|
||||
|
||||
|
||||
// TODO(b/111875856) WifiDialog should not mimic full screen UI.
|
||||
/** Creates a WifiDialog with fullscreen style. It displays in fullscreen mode. */
|
||||
public static WifiDialog createFullscreen(Context context, WifiDialogListener listener,
|
||||
AccessPoint accessPoint, int mode) {
|
||||
return new WifiDialog(context, listener, accessPoint, mode,
|
||||
R.style.Theme_Settings_NoActionBar, false /* hideSubmitButton */);
|
||||
R.style.Theme_Settings_WifiDialogFullScreen, false /* hideSubmitButton */);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user