diff options
author | Amith Yamasani <yamasani@google.com> | 2011-01-18 13:13:47 -0800 |
---|---|---|
committer | Amith Yamasani <yamasani@google.com> | 2011-01-18 13:13:47 -0800 |
commit | 18b41374e8ae8a9dcf815120e8563d0389d393f6 (patch) | |
tree | 491f7be0f332c3a45d1846a77193f063c80f59a7 /packages | |
parent | b73203ab7e308b747819de2b2400afe971ef3bff (diff) | |
download | frameworks_base-18b41374e8ae8a9dcf815120e8563d0389d393f6.zip frameworks_base-18b41374e8ae8a9dcf815120e8563d0389d393f6.tar.gz frameworks_base-18b41374e8ae8a9dcf815120e8563d0389d393f6.tar.bz2 |
Set the default state of NOTIFICATIONS_USE_RING_VOLUME to true.
Bug: 3319615
This doesn't affect upgrades, only new installs.
Change-Id: I86fa77b36867649becce8fc470bf9a559fe48131
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SettingsProvider/res/values/defaults.xml | 3 | ||||
-rw-r--r-- | packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/packages/SettingsProvider/res/values/defaults.xml b/packages/SettingsProvider/res/values/defaults.xml index 52e04d7..41f9108 100644 --- a/packages/SettingsProvider/res/values/defaults.xml +++ b/packages/SettingsProvider/res/values/defaults.xml @@ -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> diff --git a/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java b/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java index ad04bb4..f7ec294 100644 --- a/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java +++ b/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java @@ -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(); } |