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

Commit ead837d8 authored by Daniel Norman's avatar Daniel Norman Committed by Automerger Merge Worker
Browse files

Merge "fix: Unbind an A11yService from onNullBinding" into tm-dev am:...

Merge "fix: Unbind an A11yService from onNullBinding" into tm-dev am: 46bcbb3e am: a4a48c13 am: a7f7e116 am: e82ce507

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/32222099



Change-Id: I24ab59ace492226e5297d425a06ca4c6e5f0e7a8
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 4bceb30d e82ce507
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -252,6 +252,16 @@ class AccessibilityServiceConnection extends AbstractAccessibilityServiceConnect
        }
    }

    @Override
    public void onNullBinding(ComponentName componentName) {
        // Per guidance from ServiceConnection we must call Context#unbindService here to
        // release the tracking resources associated with the ServiceConnection, to prevent
        // Background Activity Launches (BAL).
        synchronized (mLock) {
            unbindLocked();
        }
    }

    @Override
    protected boolean hasRightsToCurrentUserLocked() {
        // We treat calls from a profile as if made by its parent as profiles