Snap for 6622447 from d43aa0206a
to mainline-release
Change-Id: I138cece67638dfc0c00117a9f39793e058bb9b19
This commit is contained in:
@@ -587,6 +587,8 @@
|
||||
<item name="titleItemStartPadding">10dp</item>
|
||||
<!-- Layout is 48dp and actual icon size is 48-(iconSize/2) -->
|
||||
<item name="iconSize">12dp</item>
|
||||
<!-- RecycleView item animator -->
|
||||
<item name="disableRecyclerViewItemAnimator">true</item>
|
||||
</style>
|
||||
|
||||
<style name="DisclaimerPositiveButton" parent="@style/SudGlifButton.Primary">
|
||||
|
@@ -525,7 +525,6 @@ public class SimStatusDialogController implements LifecycleObserver, OnResume, O
|
||||
if (overrideNetworkType == TelephonyDisplayInfo.OVERRIDE_NETWORK_TYPE_NR_NSA_MMWAVE
|
||||
|| overrideNetworkType == TelephonyDisplayInfo.OVERRIDE_NETWORK_TYPE_NR_NSA) {
|
||||
dataNetworkTypeName = "NR NSA";
|
||||
voiceNetworkTypeName = "NR NSA";
|
||||
}
|
||||
|
||||
boolean show4GForLTE = false;
|
||||
|
@@ -214,15 +214,7 @@ public class WifiDetailPreferenceController extends AbstractPreferenceController
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
switch (intent.getAction()) {
|
||||
case WifiManager.CONFIGURED_NETWORKS_CHANGED_ACTION:
|
||||
if (!intent.getBooleanExtra(WifiManager.EXTRA_MULTIPLE_NETWORKS_CHANGED,
|
||||
false /* defaultValue */)) {
|
||||
// only one network changed
|
||||
WifiConfiguration wifiConfiguration = intent
|
||||
.getParcelableExtra(WifiManager.EXTRA_WIFI_CONFIGURATION);
|
||||
if (mAccessPoint.matches(wifiConfiguration)) {
|
||||
mWifiConfig = wifiConfiguration;
|
||||
}
|
||||
}
|
||||
updateMatchingWifiConfig();
|
||||
// fall through
|
||||
case WifiManager.NETWORK_STATE_CHANGED_ACTION:
|
||||
case WifiManager.RSSI_CHANGED_ACTION:
|
||||
@@ -230,6 +222,17 @@ public class WifiDetailPreferenceController extends AbstractPreferenceController
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private void updateMatchingWifiConfig() {
|
||||
// use getPrivilegedConfiguredNetworks() to get Passpoint & other ephemeral networks
|
||||
for (WifiConfiguration wifiConfiguration :
|
||||
mWifiManager.getPrivilegedConfiguredNetworks()) {
|
||||
if (mAccessPoint.matches(wifiConfiguration)) {
|
||||
mWifiConfig = wifiConfiguration;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
private final NetworkRequest mNetworkRequest = new NetworkRequest.Builder()
|
||||
|
Reference in New Issue
Block a user