Setting the default value for dock audio
There was no default value for parameter "dock_audio_media_enabled" in global settings and because of that it couldn't be obtained before Settings app first start and improper actions, such as FORCE_NONE sending to AudioSystem instead of FORCE_ANALOG_DOCK, were taken. This patch sets default value to 'true'. Change-Id: Idbe343519db15f806f3a237e8b39f8420b9edde1 Signed-off-by: Dmytro Dubovyk <dmytro.dubovyk@ti.com>
This commit is contained in:
committed by
Sergii Iegorov
parent
7979b58a7a
commit
729f6685f9
@@ -77,6 +77,7 @@
|
||||
<string name="def_unlock_sound" translatable="false">/system/media/audio/ui/Unlock.ogg</string>
|
||||
<bool name="def_lockscreen_disabled">false</bool>
|
||||
<bool name="def_device_provisioned">false</bool>
|
||||
<integer name="def_dock_audio_media_enabled">1</integer>
|
||||
|
||||
<!-- Notifications use ringer volume -->
|
||||
<bool name="def_notifications_use_ring_volume">true</bool>
|
||||
|
||||
@@ -2181,6 +2181,9 @@ public class DatabaseHelper extends SQLiteOpenHelper {
|
||||
loadStringSetting(stmt, Settings.Global.CAR_UNDOCK_SOUND,
|
||||
R.string.def_car_undock_sound);
|
||||
|
||||
loadIntegerSetting(stmt, Settings.Global.DOCK_AUDIO_MEDIA_ENABLED,
|
||||
R.integer.def_dock_audio_media_enabled);
|
||||
|
||||
loadSetting(stmt, Settings.Global.SET_INSTALL_LOCATION, 0);
|
||||
loadSetting(stmt, Settings.Global.DEFAULT_INSTALL_LOCATION,
|
||||
PackageHelper.APP_INSTALL_AUTO);
|
||||
|
||||
Reference in New Issue
Block a user