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

Commit 31f28ab9 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: e96aac32

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



Change-Id: I0424de9ba60b2ae0fe49e185b4804e3fca9f0083
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 488b364c e96aac32
Loading
Loading
Loading
Loading
+10 −0
Original line number Original line Diff line number Diff line
@@ -309,6 +309,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
    @Override
    protected boolean hasRightsToCurrentUserLocked() {
    protected boolean hasRightsToCurrentUserLocked() {
        // We treat calls from a profile as if made by its parent as profiles
        // We treat calls from a profile as if made by its parent as profiles