Avoid crashing car-service due a misuse of AudioFocus
Bug: 79884417
Test: Tested using GMM
Change-Id: Ia5e23bc4fc8e1047fd5659732ed1005ec86df4d5
diff --git a/service/src/com/android/car/audio/CarAudioFocus.java b/service/src/com/android/car/audio/CarAudioFocus.java
index c4aff05..97f284b 100644
--- a/service/src/com/android/car/audio/CarAudioFocus.java
+++ b/service/src/com/android/car/audio/CarAudioFocus.java
@@ -341,7 +341,7 @@
/**
* @see AudioManager#abandonAudioFocus(AudioManager.OnAudioFocusChangeListener, AudioAttributes)
- * Note that we'll get this call for a focus holder that dies while in the focus statck, so
+ * Note that we'll get this call for a focus holder that dies while in the focus stack, so
* we don't need to watch for death notifications directly.
* */
@Override
@@ -364,6 +364,7 @@
// silently, or else take unexpected action (eg: resume playing spontaneously), or
// else to see "Failure to signal ..." gain/loss error messages in the log from
// this module when a focus change tries to take action on a truly zombie entry.
+ return;
}
}