am b58b5db4: Merge "Set the default state of NOTIFICATIONS_USE_RING_VOLUME." into honeycomb
* commit 'b58b5db4ba8edc075f6524df200aa8d3c678e267': Set the default state of NOTIFICATIONS_USE_RING_VOLUME.
This commit is contained in:
@@ -1801,7 +1801,6 @@ public final class Settings {
|
||||
SCREEN_BRIGHTNESS,
|
||||
SCREEN_BRIGHTNESS_MODE,
|
||||
VIBRATE_ON,
|
||||
NOTIFICATIONS_USE_RING_VOLUME,
|
||||
MODE_RINGER,
|
||||
MODE_RINGER_STREAMS_AFFECTED,
|
||||
MUTE_STREAMS_AFFECTED,
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user