Fix Wi-Fi anonymous ID UI issue

- Do not reset the anonymous default ID after retrieving the previous value from WifiConfiguration.

Fix: 267517525
Flag: None
Test: manual test
make RunSettingsRoboTests ROBOTEST_FILTER=WifiConfigController2Test

Change-Id: Ic10d6953f6657836e18eab6884df2af0f35a20c4
This commit is contained in:
Weng Su
2024-01-23 06:44:46 +08:00
parent 495ab9d09e
commit dd1947c078
2 changed files with 19 additions and 1 deletions

View File

@@ -1382,7 +1382,11 @@ public class WifiConfigController2 implements TextWatcher,
@VisibleForTesting
void setAnonymousIdVisible() {
mView.findViewById(R.id.l_anonymous).setVisibility(View.VISIBLE);
View view = mView.findViewById(R.id.l_anonymous);
if (view.getVisibility() == View.VISIBLE) {
return;
}
view.setVisibility(View.VISIBLE);
mEapAnonymousView.setText(DEFAULT_ANONYMOUS_ID);
}