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

Commit 13466883 authored by Tomasz Wasilczyk's avatar Tomasz Wasilczyk Committed by Gerrit Code Review
Browse files

Merge "Fix initialization of USER_ROTATION setting."

parents 6857f6ed 1e036b6d
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -846,8 +846,8 @@ class DatabaseHelper extends SQLiteOpenHelper {
            try {
                stmt = db.compileStatement("INSERT INTO system(name,value)"
                        + " VALUES(?,?);");
                loadBooleanSetting(stmt, Settings.System.USER_ROTATION,
                        R.integer.def_user_rotation); // should be zero degrees
                loadIntegerSetting(stmt, Settings.System.USER_ROTATION,
                        R.integer.def_user_rotation);
                db.setTransactionSuccessful();
            } finally {
                db.endTransaction();
@@ -2265,6 +2265,8 @@ class DatabaseHelper extends SQLiteOpenHelper {
            loadBooleanSetting(stmt, Settings.System.ACCELEROMETER_ROTATION,
                    R.bool.def_accelerometer_rotation);

            loadIntegerSetting(stmt, Settings.System.USER_ROTATION, R.integer.def_user_rotation);

            loadDefaultHapticSettings(stmt);

            loadBooleanSetting(stmt, Settings.System.NOTIFICATION_LIGHT_PULSE,