Merge "SoftAp: Use toString() API in place of toBinaryString for indexes"

This commit is contained in:
Weng Su
2021-11-23 11:51:23 +00:00
committed by Android (Google) Code Review

View File

@@ -82,7 +82,7 @@ public class WifiTetherSecurityPreferenceController extends WifiTetherBasePrefer
if (!mIsWpa3Supported && mSecurityMap.keySet()
.removeIf(key -> key > SoftApConfiguration.SECURITY_TYPE_WPA2_PSK)) {
preference.setEntries(mSecurityMap.values().stream().toArray(CharSequence[]::new));
preference.setEntryValues(mSecurityMap.keySet().stream().map(Integer::toBinaryString)
preference.setEntryValues(mSecurityMap.keySet().stream().map(i -> Integer.toString(i))
.toArray(CharSequence[]::new));
}