summaryrefslogtreecommitdiffstats
path: root/policy
diff options
context:
space:
mode:
authorJim Miller <jaggies@google.com>2012-10-01 18:17:39 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-10-01 18:17:39 -0700
commitb35000f3f48c5f2c620c4aa30275b92e38afb6c1 (patch)
tree5f2a507079b790a4a8cefe45459bf7bef8371354 /policy
parent3750db176adbaf3f9779df5eadf335f673b2ac4f (diff)
parentb14288d4b13d7629f578c4854f5a14d4d9a06783 (diff)
downloadframeworks_base-b35000f3f48c5f2c620c4aa30275b92e38afb6c1.zip
frameworks_base-b35000f3f48c5f2c620c4aa30275b92e38afb6c1.tar.gz
frameworks_base-b35000f3f48c5f2c620c4aa30275b92e38afb6c1.tar.bz2
Merge "Attempt to fix missing lock sounds" into jb-mr1-dev
Diffstat (limited to 'policy')
-rw-r--r--policy/src/com/android/internal/policy/impl/keyguard/KeyguardViewMediator.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/policy/src/com/android/internal/policy/impl/keyguard/KeyguardViewMediator.java b/policy/src/com/android/internal/policy/impl/keyguard/KeyguardViewMediator.java
index 2c415db..514ada6 100644
--- a/policy/src/com/android/internal/policy/impl/keyguard/KeyguardViewMediator.java
+++ b/policy/src/com/android/internal/policy/impl/keyguard/KeyguardViewMediator.java
@@ -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);