Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 157414c1 authored by Oscar Azucena's avatar Oscar Azucena
Browse files

Fixed focus issues related to same callingUID

Fixed issues related to callingUID.
Bug: 139441807
Test: atest AudioFocusTest, gts-tradefed run gts
--skip-device-info --skip-system-status-check
com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker
-m GtsGmscoreHostTestCases
-t 'com.google.android.gts.audio.AudioHostTest#testFocusChangeMediaToGuidance'

Change-Id: Ic650d9a85f6fcaed7edd7dbe0e60bdbea4684acc
parent f1499a4e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -405,7 +405,7 @@ public class FocusRequester {
    @GuardedBy("MediaFocusControl.mAudioFocusLock")
    private boolean frameworkHandleFocusLoss(int focusLoss, @NonNull final FocusRequester frWinner,
                                             boolean forceDuck) {
        if (frWinner.mCallingUid != this.mCallingUid) {
        if (frWinner.mCallingUid == this.mCallingUid) {
            // the focus change is within the same app, so let the dispatching
            // happen as if the framework was not involved.
            return false;