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

Commit c57159c7 authored by Riddle Hsu's avatar Riddle Hsu Committed by Android (Google) Code Review
Browse files

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

parents 1794d055 6f5a5c48
Loading
Loading
Loading
Loading
+2 −9
Original line number Diff line number Diff line
@@ -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();
            }
        }