[Wi-Fi] Remove $ icon for metered Wi-Fi networks

It has some problems:
1. The $ icon does not disappear right after set unmetered.
2. Security icon is at the same position and it takes higher priority than
    the $ icon. It's not a consistent UX since $ icon is only for open network.
3. No localization design for the $ icon.

Bug: 150912127
Test: Manual
      In Wi-Fi picker, check if $ icon is visible on metered Wi-Fi networks.
Change-Id: Ia929bbaa65367fe6f3bfba7fdd924c23622ca3ca
This commit is contained in:
Arc Wang
2020-03-06 16:53:47 +08:00
parent ec2c4dfffe
commit 56faba72bd

View File

@@ -43,10 +43,6 @@ public class WifiEntryPreference extends Preference implements WifiEntry.WifiEnt
R.attr.state_encrypted
};
private static final int[] STATE_METERED = {
R.attr.state_metered
};
private static final int[] FRICTION_ATTRS = {
R.attr.wifi_friction
};
@@ -201,8 +197,6 @@ public class WifiEntryPreference extends Preference implements WifiEntry.WifiEnt
if ((mWifiEntry.getSecurity() != WifiEntry.SECURITY_NONE)
&& (mWifiEntry.getSecurity() != WifiEntry.SECURITY_OWE)) {
mFrictionSld.setState(STATE_SECURED);
} else if (mWifiEntry.isMetered()) {
mFrictionSld.setState(STATE_METERED);
}
frictionImageView.setImageDrawable(mFrictionSld.getCurrent());
}