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

Commit f7896020 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Revert "Allow DumpViewHierarchy cmd to be interruptible without breaking."" into main

parents 9ea8eeaa 9d8b52c1
Loading
Loading
Loading
Loading
+1 −11
Original line number Diff line number Diff line
@@ -1569,17 +1569,7 @@ public class LauncherAppsService extends SystemService {
         */
        private void forEachViewCaptureWindow(
                @NonNull BiConsumer<String, InputStream> outputtingConsumer) {
            int i;
            try {
                i = mDumpCallbacks.beginBroadcast() - 1;
            } catch (IllegalStateException e) {
                Log.d(TAG, "The previous broadcast must have been killed, because a broadcast"
                        + "was occurring when it should not have been. Calling finishBroadcast and "
                        + "retrying.", e);
                mDumpCallbacks.finishBroadcast();
                i = mDumpCallbacks.beginBroadcast() - 1;
            }
            for (; i >= 0; i--) {
            for (int i = mDumpCallbacks.beginBroadcast() - 1; i >= 0; i--) {
                String packageName = (String) mDumpCallbacks.getBroadcastCookie(i);
                String fileName = WM_TRACE_DIR + packageName + "_" + i + VC_FILE_SUFFIX;