Refactor add network page
WifiDialog.java can be launched as "full screen mode" in some use cases. However the way it's done is that it uses theme to fake the full screen appearance. It just feels hacky to use a dialog for full screen UI. So, we created an "AddNetworkFragment" to make this page can look like a normal fragment. Also, clean up some useless code about "full screen mode" of WifiDialog. Change-Id: Iedd04c6a8e403cbceb872313314e1cba0d514246 Fixes: 111875856 Test: robo test, manual test
This commit is contained in:
@@ -50,14 +50,6 @@ 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_WifiDialogFullScreen, false /* hideSubmitButton */);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a WifiDialog with no additional style. It displays as a dialog above the current
|
||||
* view.
|
||||
|
Reference in New Issue
Block a user