Merge "Audio focus: no "strong duck" for navigation use case" into udc-dev

This commit is contained in:
Jean-Michel Trivi
2023-06-14 18:09:17 +00:00
committed by Android (Google) Code Review

View File

@@ -812,8 +812,7 @@ public final class PlaybackActivityMonitor
return false; return false;
} }
final int reqUsage = requester.getAudioAttributes().getUsage(); final int reqUsage = requester.getAudioAttributes().getUsage();
if ((reqUsage == AudioAttributes.USAGE_ASSISTANT) if (reqUsage == AudioAttributes.USAGE_ASSISTANT) {
|| (reqUsage == AudioAttributes.USAGE_ASSISTANCE_NAVIGATION_GUIDANCE)) {
return true; return true;
} }
return false; return false;