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

Commit 4e77edf0 authored by Michael Bestas's avatar Michael Bestas Committed by Steve Kondik
Browse files

Set Settings.Global.WIFI_SUSPEND_OPTIMIZATIONS_ENABLED default value

To be able to customize the "WiFi optimization"
setting we need to set a default value.

Change-Id: I9cd2f204cf46c0b4c70a4a147da2f1d73a708308
parent 1bed6c71
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -181,6 +181,9 @@
    <!-- Default for Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE -->
    <integer name="def_wifi_scan_always_available">0</integer>

    <!-- Default for Settings.Global.WIFI_SUSPEND_OPTIMIZATIONS_ENABLED -->
    <integer name="def_wifi_suspend_optimizations_enabled">1</integer>

    <!-- Default for Settings.System.STATUS_BAR_BATTERY -->
    <integer name="def_battery_style">0</integer>
    <!-- Default for Settings.System.STATUS_BAR_BATTERY_SHOW_PERCENT -->
+3 −0
Original line number Diff line number Diff line
@@ -2363,6 +2363,9 @@ public class DatabaseHelper extends SQLiteOpenHelper {
            loadIntegerSetting(stmt, Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE,
                    R.integer.def_wifi_scan_always_available);

            loadIntegerSetting(stmt, Settings.Global.WIFI_SUSPEND_OPTIMIZATIONS_ENABLED,
                    R.integer.def_wifi_suspend_optimizations_enabled);

            // --- New global settings start here
        } finally {
            if (stmt != null) stmt.close();