Merge "Merge "Remove invocation of closeTransaction while using a11y service" into rvc-dev am: c57159c790 am: a4ab780728" into rvc-d1-dev-plus-aosp am: 8d974be1dc am: 5f7e307bb2

Change-Id: Id4463b2ece09b3f8970e2c45b557271568b5952e
This commit is contained in:
Automerger Merge Worker
2020-04-22 09:16:52 +00:00

View File

@@ -7650,15 +7650,8 @@ public class WindowManagerService extends IWindowManager.Stub
Slog.w(TAG, "Cannot find window which accessibility connection is added to");
return;
}
try (SurfaceControl.Transaction t = new SurfaceControl.Transaction()) {
t.setMetadata(
state.mSurfaceControl,
SurfaceControl.METADATA_ACCESSIBILITY_ID,
accessibilityWindowId);
t.apply();
} finally {
SurfaceControl.closeTransaction();
}
mTransaction.setMetadata(state.mSurfaceControl,
SurfaceControl.METADATA_ACCESSIBILITY_ID, accessibilityWindowId).apply();
}
}