Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 818d8099 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "wifi: Fix unnecessary notification after restoring config from cloud." into tm-qpr-dev

parents 8ac996fd 9133f77f
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -1076,7 +1076,9 @@ public class SettingsBackupAgent extends BackupAgentHelper {
            SoftApConfiguration storedConfig = mWifiManager.getSoftApConfiguration();

            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);
            }
        }
@@ -1115,9 +1117,6 @@ public class SettingsBackupAgent extends BackupAgentHelper {
                        == storedConfig.getBridgedModeOpportunisticShutdownTimeoutMillis()
                && Objects.equals(configInCloud.getVendorElements(),
                        storedConfig.getVendorElements())
                && (configInCloud.getPersistentRandomizedMacAddress() != null
                        ? Objects.equals(configInCloud.getPersistentRandomizedMacAddress(),
                        storedConfig.getPersistentRandomizedMacAddress()) : true)
                && Arrays.equals(configInCloud.getAllowedAcsChannels(
                        SoftApConfiguration.BAND_2GHZ),
                        storedConfig.getAllowedAcsChannels(SoftApConfiguration.BAND_2GHZ))