Remove duplicated metered & privacy spinner
From Wi-Fi dialog when there are already same settings in the Wi-Fi detail page. This makes simpler for the user and help fix the inconsistent issue. Fix: 297036035 Test: manual - open Wi-Fi dialog from Wi-Fi detail page Test: robo test Change-Id: Ic02658d91938db78b91e867a923260aa2610ae49
This commit is contained in:
@@ -41,6 +41,7 @@ class WifiDialog2 @JvmOverloads constructor(
|
||||
private val mode: Int,
|
||||
@StyleRes style: Int = 0,
|
||||
private val hideSubmitButton: Boolean = mode == WifiConfigUiBase2.MODE_VIEW,
|
||||
private val hideMeteredAndPrivacy: Boolean = false,
|
||||
) : AlertDialog(context, style), WifiConfigUiBase2, DialogInterface.OnClickListener {
|
||||
/**
|
||||
* Host UI component of WifiDialog2 can receive callbacks by this interface.
|
||||
@@ -71,7 +72,7 @@ class WifiDialog2 @JvmOverloads constructor(
|
||||
setWindowsOverlay()
|
||||
view = layoutInflater.inflate(R.layout.wifi_dialog, null)
|
||||
setView(view)
|
||||
controller = WifiConfigController2(this, view, wifiEntry, mode)
|
||||
controller = WifiConfigController2(this, view, wifiEntry, mode, hideMeteredAndPrivacy)
|
||||
super.onCreate(savedInstanceState)
|
||||
if (hideSubmitButton) {
|
||||
controller.hideSubmitButton()
|
||||
|
||||
Reference in New Issue
Block a user