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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user