Add more modes for volume updates
Bug: 230643532 Test: Build Change-Id: I935b28841525b30f45fcebb207f15b594dea1e68
This commit is contained in:
@@ -3805,14 +3805,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;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3840,14 +3838,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