diff options
author | Amith Yamasani <yamasani@google.com> | 2011-01-20 12:34:03 -0800 |
---|---|---|
committer | Amith Yamasani <yamasani@google.com> | 2011-01-20 12:34:03 -0800 |
commit | 43dee06479d96d51e895704a9ee480232224c761 (patch) | |
tree | 4d046f07ad18fc5a6c746bdf50d72891a9a6684f /packages | |
parent | 4061c9aa6d77bd7ad3b43d898b3e55fd62f57f18 (diff) | |
download | frameworks_base-43dee06479d96d51e895704a9ee480232224c761.zip frameworks_base-43dee06479d96d51e895704a9ee480232224c761.tar.gz frameworks_base-43dee06479d96d51e895704a9ee480232224c761.tar.bz2 |
Set the default state of NOTIFICATIONS_USE_RING_VOLUME.
Bug: 3365600
This doesn't affect upgrades, only new installs.
Don't backup/restore NOTIFICATIONS_USE_RING_VOLUME anymore as it doesn't
work well across device types and can wedge the device into a state
where you can never hear notification sounds.
Change-Id: I703e1db539eb4ac45b273f46ada0b4bbf3b981bb
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 5981139..27c8aea 100644 --- a/packages/SettingsProvider/res/values/defaults.xml +++ b/packages/SettingsProvider/res/values/defaults.xml @@ -71,6 +71,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> diff --git a/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java b/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java index bc7473e..580113c 100644 --- a/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java +++ b/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java @@ -1168,6 +1168,11 @@ public class DatabaseHelper extends SQLiteOpenHelper { loadBooleanSetting(stmt, Settings.System.USE_PTP_INTERFACE, R.bool.def_use_ptp_interface); + + // 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(); } |