[Wi-Fi] Fix Hidden network option scrolls to bottom problem
Should not scroll to bottom since Hidden network option is not at the bottom most. Bug: 148036155 Test: manual Wi-Fi Setings -> Add network -> Advanced options -> click 'Hidden network' Yes -> should not scroll to bottom. Change-Id: I6511f75441ebad62e2c28df76a39d702d78898a6
This commit is contained in:
@@ -1573,15 +1573,8 @@ public class WifiConfigController implements TextWatcher,
|
|||||||
} else if (parent == mProxySettingsSpinner) {
|
} else if (parent == mProxySettingsSpinner) {
|
||||||
showProxyFields();
|
showProxyFields();
|
||||||
} else if (parent == mHiddenSettingsSpinner) {
|
} else if (parent == mHiddenSettingsSpinner) {
|
||||||
mHiddenWarningView.setVisibility(
|
mHiddenWarningView.setVisibility(position == NOT_HIDDEN_NETWORK
|
||||||
position == NOT_HIDDEN_NETWORK
|
? View.GONE : View.VISIBLE);
|
||||||
? View.GONE
|
|
||||||
: View.VISIBLE);
|
|
||||||
if (position == HIDDEN_NETWORK) {
|
|
||||||
mDialogContainer.post(() -> {
|
|
||||||
mDialogContainer.fullScroll(View.FOCUS_DOWN);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
showIpConfigFields();
|
showIpConfigFields();
|
||||||
}
|
}
|
||||||
|
@@ -1569,15 +1569,8 @@ public class WifiConfigController2 implements TextWatcher,
|
|||||||
} else if (parent == mProxySettingsSpinner) {
|
} else if (parent == mProxySettingsSpinner) {
|
||||||
showProxyFields();
|
showProxyFields();
|
||||||
} else if (parent == mHiddenSettingsSpinner) {
|
} else if (parent == mHiddenSettingsSpinner) {
|
||||||
mHiddenWarningView.setVisibility(
|
mHiddenWarningView.setVisibility(position == NOT_HIDDEN_NETWORK
|
||||||
position == NOT_HIDDEN_NETWORK
|
? View.GONE : View.VISIBLE);
|
||||||
? View.GONE
|
|
||||||
: View.VISIBLE);
|
|
||||||
if (position == HIDDEN_NETWORK) {
|
|
||||||
mDialogContainer.post(() -> {
|
|
||||||
mDialogContainer.fullScroll(View.FOCUS_DOWN);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
showIpConfigFields();
|
showIpConfigFields();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user