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

Commit 18b41374 authored by Amith Yamasani's avatar Amith Yamasani
Browse files

Set the default state of NOTIFICATIONS_USE_RING_VOLUME to true.

Bug: 3319615

This doesn't affect upgrades, only new installs.

Change-Id: I86fa77b36867649becce8fc470bf9a559fe48131
parent b73203ab
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -70,6 +70,9 @@
    <string name="def_lock_sound" translatable="false">/system/media/audio/ui/Lock.ogg</string>
    <string name="def_unlock_sound" translatable="false">/system/media/audio/ui/Unlock.ogg</string>

    <!-- Notifications use ringer volume -->
    <bool name="def_notifications_use_ring_volume">true</bool>

    <!-- Default for Settings.System.VIBRATE_IN_SILENT -->
    <bool name="def_vibrate_in_silent">true</bool>
</resources>
+5 −0
Original line number Diff line number Diff line
@@ -1068,6 +1068,11 @@ public class DatabaseHelper extends SQLiteOpenHelper {
    
            loadBooleanSetting(stmt, Settings.System.VIBRATE_IN_SILENT,
                    R.bool.def_vibrate_in_silent);

            // Set notification volume to follow ringer volume by default
            loadBooleanSetting(stmt, Settings.System.NOTIFICATIONS_USE_RING_VOLUME,
                    R.bool.def_notifications_use_ring_volume);

        } finally {
            if (stmt != null) stmt.close();
        }