Merge "Remove invocation of closeTransaction while using a11y service" into rvc-dev am: c57159c790 am: a4ab780728
Change-Id: I582dfdd88f940f1635b371fba6c9fbd0424e07e7
This commit is contained in:
@@ -7650,15 +7650,8 @@ public class WindowManagerService extends IWindowManager.Stub
|
|||||||
Slog.w(TAG, "Cannot find window which accessibility connection is added to");
|
Slog.w(TAG, "Cannot find window which accessibility connection is added to");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
try (SurfaceControl.Transaction t = new SurfaceControl.Transaction()) {
|
mTransaction.setMetadata(state.mSurfaceControl,
|
||||||
t.setMetadata(
|
SurfaceControl.METADATA_ACCESSIBILITY_ID, accessibilityWindowId).apply();
|
||||||
state.mSurfaceControl,
|
|
||||||
SurfaceControl.METADATA_ACCESSIBILITY_ID,
|
|
||||||
accessibilityWindowId);
|
|
||||||
t.apply();
|
|
||||||
} finally {
|
|
||||||
SurfaceControl.closeTransaction();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user