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

Commit 634471ed authored by John Spurlock's avatar John Spurlock
Browse files

Load default Dream settings into a clean db.

Set the Dream defaults during onCreate, not only onUpgrade.

Bug: 6959513
Change-Id: Ia93097edaf1150813c75b6be809db9c97987868f
parent b7649306
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1697,6 +1697,13 @@ public class DatabaseHelper extends SQLiteOpenHelper {

            loadIntegerSetting(stmt, Settings.Secure.WIFI_MAX_DHCP_RETRY_COUNT,
                    R.integer.def_max_dhcp_retries);

            loadBooleanSetting(stmt, Settings.Secure.SCREENSAVER_ENABLED,
                    R.bool.def_screensaver_enabled);
            loadBooleanSetting(stmt, Settings.Secure.SCREENSAVER_ACTIVATE_ON_DOCK,
                    R.bool.def_screensaver_activate_on_dock);
            loadStringSetting(stmt, Settings.Secure.SCREENSAVER_COMPONENT,
                    R.string.def_screensaver_component);
        } finally {
            if (stmt != null) stmt.close();
        }