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

Commit 5ad3e01b authored by Rhed Jao's avatar Rhed Jao
Browse files

Fix legacy a11y service fail to update a11y button flag

Bug: 144889227
Test: atest AccessibilityButtonTest
Test: atest AccessibilityButtonSdk29Test
Change-Id: I7cb7041b016dab8ad8d98057b4675c0d19748fa5
parent 67c8338d
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -680,9 +680,8 @@ public class AccessibilityServiceInfo implements Parcelable {
        }
        try {
            if (platformCompat != null) {
                return platformCompat.isChangeEnabledByPackageName(
                        REQUEST_ACCESSIBILITY_BUTTON_CHANGE, mResolveInfo.serviceInfo.packageName,
                        mResolveInfo.serviceInfo.applicationInfo.uid);
                return platformCompat.isChangeEnabled(REQUEST_ACCESSIBILITY_BUTTON_CHANGE,
                        mResolveInfo.serviceInfo.applicationInfo);
            }
        } catch (RemoteException ignore) {
        }