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

Commit 6689e620 authored by Matvei Malkov's avatar Matvei Malkov
Browse files

Restrict usage of AccessibilityManager::mIsEnabled after P

Setting this field with reflection leaves AccessibilityManager in
improper state. Restrict access to this field in future apis

Bug: b/124052733
Test: accessibility tests passed
Change-Id: I776e1092ab33cf9660f593a22585695c17852e1e
parent d224e240
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -174,7 +174,7 @@ public final class AccessibilityManager {

    final Handler.Callback mCallback;

    @UnsupportedAppUsage
    @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P)
    boolean mIsEnabled;

    int mRelevantEventTypes = AccessibilityEvent.TYPES_ALL_MASK;