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

Commit 6df87f5b authored by Zhekai Hu's avatar Zhekai Hu Committed by Android (Google) Code Review
Browse files

Merge "Assign notifyVirtualChildrenAppeared to run on background thread" into main

parents 34411a36 b496364b
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -1036,11 +1036,12 @@ public final class MainContentCaptureSession extends ContentCaptureSession {
                            && structure.getAutofillId() != null
                            && mManager.isContentCaptureConditionEnabled(
                                    CONDITION_ENABLE_EXPORTING_VIRTUAL_CHILDREN)) {
                        // TODO: Move this to a background thread to improve performance.
                        runOnContentCaptureThread(() -> {
                            Trace.beginSection("notifyVirtualChildrenAppeared");
                            notifyVirtualChildrenAppeared(session, structure.getAutofillId(),
                                    view.getAccessibilityNodeProvider());
                            Trace.endSection();
                        });
                    }
                    structureSession.setSession(session);
                    structureSession.setStructure(structure);