Format with google-java-format

This commit is contained in:
Ian Baker 2024-08-15 12:21:53 +01:00
parent 0a0444b9a5
commit a6f5d3daf5

View File

@ -181,8 +181,11 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
*/
public AudioFocusManager(Context context, Handler eventHandler, PlayerControl playerControl) {
this.audioManager =
Suppliers.memoize(() -> checkNotNull(
(AudioManager) context.getApplicationContext().getSystemService(Context.AUDIO_SERVICE)));
Suppliers.memoize(
() ->
checkNotNull(
(AudioManager)
context.getApplicationContext().getSystemService(Context.AUDIO_SERVICE)));
this.playerControl = playerControl;
this.focusListener = new AudioFocusListener(eventHandler);
this.audioFocusState = AUDIO_FOCUS_STATE_NOT_REQUESTED;
@ -287,7 +290,9 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
}
private int requestAudioFocusDefault() {
return audioManager.get().requestAudioFocus(
return audioManager
.get()
.requestAudioFocus(
focusListener,
Util.getStreamTypeForAudioUsage(checkNotNull(audioAttributes).usage),
focusGainToRequest);