Merge "wifi: Fix unnecessary notification after restoring config from cloud." into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
818d809993
@@ -1076,7 +1076,9 @@ public class SettingsBackupAgent extends BackupAgentHelper {
|
|||||||
SoftApConfiguration storedConfig = mWifiManager.getSoftApConfiguration();
|
SoftApConfiguration storedConfig = mWifiManager.getSoftApConfiguration();
|
||||||
|
|
||||||
if (isNeedToNotifyUserConfigurationHasChanged(configInCloud, storedConfig)) {
|
if (isNeedToNotifyUserConfigurationHasChanged(configInCloud, storedConfig)) {
|
||||||
Log.d(TAG, "restored ap configuration requires a conversion, notify the user");
|
Log.d(TAG, "restored ap configuration requires a conversion, notify the user"
|
||||||
|
+ ", configInCloud is " + configInCloud + " but storedConfig is "
|
||||||
|
+ storedConfig);
|
||||||
WifiSoftApConfigChangedNotifier.notifyUserOfConfigConversion(this);
|
WifiSoftApConfigChangedNotifier.notifyUserOfConfigConversion(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1115,9 +1117,6 @@ public class SettingsBackupAgent extends BackupAgentHelper {
|
|||||||
== storedConfig.getBridgedModeOpportunisticShutdownTimeoutMillis()
|
== storedConfig.getBridgedModeOpportunisticShutdownTimeoutMillis()
|
||||||
&& Objects.equals(configInCloud.getVendorElements(),
|
&& Objects.equals(configInCloud.getVendorElements(),
|
||||||
storedConfig.getVendorElements())
|
storedConfig.getVendorElements())
|
||||||
&& (configInCloud.getPersistentRandomizedMacAddress() != null
|
|
||||||
? Objects.equals(configInCloud.getPersistentRandomizedMacAddress(),
|
|
||||||
storedConfig.getPersistentRandomizedMacAddress()) : true)
|
|
||||||
&& Arrays.equals(configInCloud.getAllowedAcsChannels(
|
&& Arrays.equals(configInCloud.getAllowedAcsChannels(
|
||||||
SoftApConfiguration.BAND_2GHZ),
|
SoftApConfiguration.BAND_2GHZ),
|
||||||
storedConfig.getAllowedAcsChannels(SoftApConfiguration.BAND_2GHZ))
|
storedConfig.getAllowedAcsChannels(SoftApConfiguration.BAND_2GHZ))
|
||||||
|
|||||||
Reference in New Issue
Block a user