Merge "Remove invocation of closeTransaction while using a11y service" into rvc-dev am: c57159c790

Change-Id: I128f0099f0ca5d7e65a88b0215df8291aa967b78
This commit is contained in:
Riddle Hsu
2020-04-22 08:33:49 +00:00
committed by Automerger Merge Worker

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();
}
}