Loading packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java +6 −4 Original line number Diff line number Diff line Loading @@ -1884,10 +1884,6 @@ public class DatabaseHelper extends SQLiteOpenHelper { loadIntegerSetting(stmt, Settings.System.LOCKSCREEN_SOUNDS_ENABLED, R.integer.def_lockscreen_sounds_enabled); loadStringSetting(stmt, Settings.System.LOCK_SOUND, R.string.def_lock_sound); loadStringSetting(stmt, Settings.System.UNLOCK_SOUND, R.string.def_unlock_sound); } private void loadDefaultAnimationSettings(SQLiteStatement stmt) { Loading Loading @@ -2103,6 +2099,12 @@ public class DatabaseHelper extends SQLiteOpenHelper { loadBooleanSetting(stmt, Settings.Global.WIFI_DISPLAY_ON, R.bool.def_wifi_display_on); loadStringSetting(stmt, Settings.Global.LOCK_SOUND, R.string.def_lock_sound); loadStringSetting(stmt, Settings.Global.UNLOCK_SOUND, R.string.def_unlock_sound); // --- New global settings start here } finally { if (stmt != null) stmt.close(); Loading policy/src/com/android/internal/policy/impl/keyguard/KeyguardViewMediator.java +4 −4 Original line number Diff line number Diff line Loading @@ -470,19 +470,19 @@ public class KeyguardViewMediator { mScreenOn = mPM.isScreenOn(); mLockSounds = new SoundPool(1, AudioManager.STREAM_SYSTEM, 0); String soundPath = Settings.System.getString(cr, Settings.System.LOCK_SOUND); String soundPath = Settings.Global.getString(cr, Settings.Global.LOCK_SOUND); if (soundPath != null) { mLockSoundId = mLockSounds.load(soundPath, 1); } if (soundPath == null || mLockSoundId == 0) { if (DEBUG) Log.d(TAG, "failed to load sound from " + soundPath); Log.w(TAG, "failed to load lock sound from " + soundPath); } soundPath = Settings.System.getString(cr, Settings.System.UNLOCK_SOUND); soundPath = Settings.Global.getString(cr, Settings.Global.UNLOCK_SOUND); if (soundPath != null) { mUnlockSoundId = mLockSounds.load(soundPath, 1); } if (soundPath == null || mUnlockSoundId == 0) { if (DEBUG) Log.d(TAG, "failed to load sound from " + soundPath); Log.w(TAG, "failed to load unlock sound from " + soundPath); } int lockSoundDefaultAttenuation = context.getResources().getInteger( com.android.internal.R.integer.config_lockSoundVolumeDb); Loading Loading
packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java +6 −4 Original line number Diff line number Diff line Loading @@ -1884,10 +1884,6 @@ public class DatabaseHelper extends SQLiteOpenHelper { loadIntegerSetting(stmt, Settings.System.LOCKSCREEN_SOUNDS_ENABLED, R.integer.def_lockscreen_sounds_enabled); loadStringSetting(stmt, Settings.System.LOCK_SOUND, R.string.def_lock_sound); loadStringSetting(stmt, Settings.System.UNLOCK_SOUND, R.string.def_unlock_sound); } private void loadDefaultAnimationSettings(SQLiteStatement stmt) { Loading Loading @@ -2103,6 +2099,12 @@ public class DatabaseHelper extends SQLiteOpenHelper { loadBooleanSetting(stmt, Settings.Global.WIFI_DISPLAY_ON, R.bool.def_wifi_display_on); loadStringSetting(stmt, Settings.Global.LOCK_SOUND, R.string.def_lock_sound); loadStringSetting(stmt, Settings.Global.UNLOCK_SOUND, R.string.def_unlock_sound); // --- New global settings start here } finally { if (stmt != null) stmt.close(); Loading
policy/src/com/android/internal/policy/impl/keyguard/KeyguardViewMediator.java +4 −4 Original line number Diff line number Diff line Loading @@ -470,19 +470,19 @@ public class KeyguardViewMediator { mScreenOn = mPM.isScreenOn(); mLockSounds = new SoundPool(1, AudioManager.STREAM_SYSTEM, 0); String soundPath = Settings.System.getString(cr, Settings.System.LOCK_SOUND); String soundPath = Settings.Global.getString(cr, Settings.Global.LOCK_SOUND); if (soundPath != null) { mLockSoundId = mLockSounds.load(soundPath, 1); } if (soundPath == null || mLockSoundId == 0) { if (DEBUG) Log.d(TAG, "failed to load sound from " + soundPath); Log.w(TAG, "failed to load lock sound from " + soundPath); } soundPath = Settings.System.getString(cr, Settings.System.UNLOCK_SOUND); soundPath = Settings.Global.getString(cr, Settings.Global.UNLOCK_SOUND); if (soundPath != null) { mUnlockSoundId = mLockSounds.load(soundPath, 1); } if (soundPath == null || mUnlockSoundId == 0) { if (DEBUG) Log.d(TAG, "failed to load sound from " + soundPath); Log.w(TAG, "failed to load unlock sound from " + soundPath); } int lockSoundDefaultAttenuation = context.getResources().getInteger( com.android.internal.R.integer.config_lockSoundVolumeDb); Loading