diff options
author | Amith Yamasani <yamasani@google.com> | 2011-12-02 11:24:03 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-12-02 11:24:03 -0800 |
commit | f8dad0b37d9aa2476ef3ab84b9f4a7a9f4c960e4 (patch) | |
tree | e60d1c42d3e8d76e70776585167dbc8605ff9a74 /media/java | |
parent | 99019d522335690df4c563e1dbe489bf843fe58e (diff) | |
parent | afd01086795c7c1f6950a709180b2361625b8b6a (diff) | |
download | frameworks_base-f8dad0b37d9aa2476ef3ab84b9f4a7a9f4c960e4.zip frameworks_base-f8dad0b37d9aa2476ef3ab84b9f4a7a9f4c960e4.tar.gz frameworks_base-f8dad0b37d9aa2476ef3ab84b9f4a7a9f4c960e4.tar.bz2 |
am afd01086: Merge "Further volume improvements." into ics-mr1
* commit 'afd01086795c7c1f6950a709180b2361625b8b6a':
Further volume improvements.
Diffstat (limited to 'media/java')
-rw-r--r-- | media/java/android/media/AudioService.java | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/media/java/android/media/AudioService.java b/media/java/android/media/AudioService.java index b9a11cd..228786e 100644 --- a/media/java/android/media/AudioService.java +++ b/media/java/android/media/AudioService.java @@ -21,7 +21,6 @@ import static android.media.AudioManager.RINGER_MODE_SILENT; import static android.media.AudioManager.RINGER_MODE_VIBRATE; import android.app.ActivityManagerNative; -import android.app.KeyguardManager; import android.app.PendingIntent; import android.app.PendingIntent.CanceledException; import android.bluetooth.BluetoothA2dp; @@ -320,8 +319,6 @@ public class AudioService extends IAudioService.Stub { private static final int NOTIFICATION_VOLUME_DELAY_MS = 5000; // previous volume adjustment direction received by checkForRingerModeChange() private int mPrevVolDirection = AudioManager.ADJUST_SAME; - // Keyguard manager proxy - private KeyguardManager mKeyguardManager; /////////////////////////////////////////////////////////////////////////// // Construction @@ -506,10 +503,9 @@ public class AudioService extends IAudioService.Stub { streamType = getActiveStreamType(suggestedStreamType); } - // Play sounds on STREAM_RING only and if lock screen is not on. + // Play sounds on STREAM_RING only. if ((flags & AudioManager.FLAG_PLAY_SOUND) != 0 && - ((STREAM_VOLUME_ALIAS[streamType] != AudioSystem.STREAM_RING) || - (mKeyguardManager != null && mKeyguardManager.isKeyguardLocked()))) { + ((STREAM_VOLUME_ALIAS[streamType] != AudioSystem.STREAM_RING))) { flags &= ~AudioManager.FLAG_PLAY_SOUND; } @@ -2669,8 +2665,6 @@ public class AudioService extends IAudioService.Stub { sendMsg(mAudioHandler, MSG_LOAD_SOUND_EFFECTS, SHARED_MSG, SENDMSG_NOOP, 0, 0, null, 0); - mKeyguardManager = - (KeyguardManager)mContext.getSystemService(Context.KEYGUARD_SERVICE); mScoConnectionState = AudioManager.SCO_AUDIO_STATE_ERROR; resetBluetoothSco(); getBluetoothHeadset(); |