[DO NOT MERGE] Make a11y overlays trusted. am: 139936a029
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22827660 Change-Id: I69ccdcf31213c7fab74989f13082001ffa4da290 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -2551,6 +2551,9 @@ abstract class AbstractAccessibilityServiceConnection extends IAccessibilityServ
|
||||
@Override
|
||||
public void attachAccessibilityOverlayToWindow(int accessibilityWindowId, SurfaceControl sc)
|
||||
throws RemoteException {
|
||||
SurfaceControl.Transaction t = new SurfaceControl.Transaction();
|
||||
t.setTrustedOverlay(sc, true).apply();
|
||||
t.close();
|
||||
synchronized (mLock) {
|
||||
RemoteAccessibilityConnection connection =
|
||||
mA11yWindowManager.getConnectionLocked(
|
||||
|
||||
@@ -5329,9 +5329,8 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub
|
||||
mA11yOverlayLayers.remove(displayId);
|
||||
return;
|
||||
}
|
||||
SurfaceControl.Transaction transaction = new SurfaceControl.Transaction();
|
||||
transaction.reparent(sc, parent);
|
||||
transaction.apply();
|
||||
transaction.close();
|
||||
SurfaceControl.Transaction t = new SurfaceControl.Transaction();
|
||||
t.reparent(sc, parent).setTrustedOverlay(sc, true).apply();
|
||||
t.close();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user