Add more modes for volume updates am: 6642aecb28 am: f415cd4e13
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19514729 Change-Id: I653831d45af30847fad163068874daa61736906f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -3934,14 +3934,12 @@ public class AudioService extends IAudioService.Stub
|
|||||||
case AudioSystem.MODE_IN_COMMUNICATION:
|
case AudioSystem.MODE_IN_COMMUNICATION:
|
||||||
case AudioSystem.MODE_IN_CALL:
|
case AudioSystem.MODE_IN_CALL:
|
||||||
case AudioSystem.MODE_NORMAL:
|
case AudioSystem.MODE_NORMAL:
|
||||||
|
case AudioSystem.MODE_CALL_SCREENING:
|
||||||
|
case AudioSystem.MODE_CALL_REDIRECT:
|
||||||
|
case AudioSystem.MODE_COMMUNICATION_REDIRECT:
|
||||||
break;
|
break;
|
||||||
case AudioSystem.MODE_RINGTONE:
|
|
||||||
// not changing anything for ringtone
|
|
||||||
return;
|
|
||||||
case AudioSystem.MODE_CURRENT:
|
|
||||||
case AudioSystem.MODE_INVALID:
|
|
||||||
default:
|
default:
|
||||||
// don't know what to do in this case, better bail
|
// no-op is enough for all other values
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3969,14 +3967,12 @@ public class AudioService extends IAudioService.Stub
|
|||||||
case AudioSystem.MODE_IN_COMMUNICATION:
|
case AudioSystem.MODE_IN_COMMUNICATION:
|
||||||
case AudioSystem.MODE_IN_CALL:
|
case AudioSystem.MODE_IN_CALL:
|
||||||
case AudioSystem.MODE_NORMAL:
|
case AudioSystem.MODE_NORMAL:
|
||||||
|
case AudioSystem.MODE_CALL_SCREENING:
|
||||||
|
case AudioSystem.MODE_CALL_REDIRECT:
|
||||||
|
case AudioSystem.MODE_COMMUNICATION_REDIRECT:
|
||||||
break;
|
break;
|
||||||
case AudioSystem.MODE_RINGTONE:
|
|
||||||
// not changing anything for ringtone
|
|
||||||
return;
|
|
||||||
case AudioSystem.MODE_CURRENT:
|
|
||||||
case AudioSystem.MODE_INVALID:
|
|
||||||
default:
|
default:
|
||||||
// don't know what to do in this case, better bail
|
// no-op is enough for all other values
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user