summaryrefslogtreecommitdiffstats
path: root/policy
diff options
context:
space:
mode:
authorRoboErik <epastern@google.com>2014-07-15 17:23:18 -0700
committerRoboErik <epastern@google.com>2014-07-16 12:03:45 -0700
commit1ff5b1648a051e9650614f0c0f1b3f449777db81 (patch)
treef24d5542c8532a4db1331b1c02c77d76ab6e3948 /policy
parent8b4bffcac996b4083e720310a09d315ca1c4a000 (diff)
downloadframeworks_base-1ff5b1648a051e9650614f0c0f1b3f449777db81.zip
frameworks_base-1ff5b1648a051e9650614f0c0f1b3f449777db81.tar.gz
frameworks_base-1ff5b1648a051e9650614f0c0f1b3f449777db81.tar.bz2
Change adjustVolumeBy to adjustVolume
This makes volume adjustments take a direction instead of a number of steps and renames the API appropriately. Change-Id: I6a31cbc42d889a38aa63446686a424cb2b8b2270
Diffstat (limited to 'policy')
-rw-r--r--policy/src/com/android/internal/policy/impl/PhoneWindow.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindow.java b/policy/src/com/android/internal/policy/impl/PhoneWindow.java
index f431fdb..edeb5b4 100644
--- a/policy/src/com/android/internal/policy/impl/PhoneWindow.java
+++ b/policy/src/com/android/internal/policy/impl/PhoneWindow.java
@@ -1700,7 +1700,7 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
// If we have a session send it the volume command, otherwise
// use the suggested stream.
if (mMediaController != null) {
- mMediaController.adjustVolumeBy(direction, AudioManager.FLAG_SHOW_UI);
+ mMediaController.adjustVolume(direction, AudioManager.FLAG_SHOW_UI);
} else {
MediaSessionLegacyHelper.getHelper(getContext()).sendAdjustVolumeBy(
mVolumeControlStreamType, direction, AudioManager.FLAG_SHOW_UI);
@@ -1787,7 +1787,7 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
// If we have a session send it the volume command, otherwise
// use the suggested stream.
if (mMediaController != null) {
- mMediaController.adjustVolumeBy(0, AudioManager.FLAG_PLAY_SOUND
+ mMediaController.adjustVolume(0, AudioManager.FLAG_PLAY_SOUND
| AudioManager.FLAG_VIBRATE);
} else {
MediaSessionLegacyHelper.getHelper(getContext()).sendAdjustVolumeBy(