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

Commit 66e47dce authored by Arc Wang's avatar Arc Wang Committed by Automerger Merge Worker
Browse files

Merge "[Wi-Fi] Add WifiSavedConfigUtils#getAllConfigsCount" into rvc-dev am:...

Merge "[Wi-Fi] Add WifiSavedConfigUtils#getAllConfigsCount" into rvc-dev am: b02f8ff7 am: d5c409d9 am: ed862a16

Change-Id: Iac8cbd43d0bdf5c136df8e376fdd527a563c6b7d
parents e8c48525 ed862a16
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -65,5 +65,17 @@ public class WifiSavedConfigUtils {
        }
        return savedConfigs;
    }

    /**
     * Returns the count of the saved configurations on the device, including both Wi-Fi networks
     * and Passpoint profiles.
     *
     * @param context The application context
     * @param wifiManager An instance of {@link WifiManager}
     * @return count of saved Wi-Fi networks
     */
    public static int getAllConfigsCount(Context context, WifiManager wifiManager) {
        return getAllConfigs(context, wifiManager).size();
    }
}