Loading media/java/android/media/AudioService.java +4 −3 Original line number Diff line number Diff line Loading @@ -2971,7 +2971,7 @@ public class AudioService extends IAudioService.Stub { device); } public synchronized boolean setIndex(int index, int device) { public boolean setIndex(int index, int device) { int oldIndex = getIndex(device); index = getValidIndex(index); synchronized (mCameraSoundForced) { Loading @@ -2979,8 +2979,9 @@ public class AudioService extends IAudioService.Stub { index = mIndexMax; } } synchronized (this) { mIndex.put(device, index); } if (oldIndex != index) { // Apply change to all streams using this one as alias // if changing volume of current device, also change volume of current Loading Loading
media/java/android/media/AudioService.java +4 −3 Original line number Diff line number Diff line Loading @@ -2971,7 +2971,7 @@ public class AudioService extends IAudioService.Stub { device); } public synchronized boolean setIndex(int index, int device) { public boolean setIndex(int index, int device) { int oldIndex = getIndex(device); index = getValidIndex(index); synchronized (mCameraSoundForced) { Loading @@ -2979,8 +2979,9 @@ public class AudioService extends IAudioService.Stub { index = mIndexMax; } } synchronized (this) { mIndex.put(device, index); } if (oldIndex != index) { // Apply change to all streams using this one as alias // if changing volume of current device, also change volume of current Loading