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

Commit d35e94a3 authored by Michael Wright's avatar Michael Wright Committed by Android Git Automerger
Browse files

am 6be8dde6: am 4846a93b: Merge "Only call dump when a ViewRoot actually exists" into klp-dev

* commit '6be8dde6':
  Only call dump when a ViewRoot actually exists
parents 9730fbc0 6be8dde6
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -4857,7 +4857,11 @@ public class Activity extends ContextThemeWrapper

        mFragments.dump(prefix, fd, writer, args);

        getWindow().getDecorView().getViewRootImpl().dump(prefix, fd, writer, args);
        if (getWindow() != null &&
                getWindow().peekDecorView() != null &&
                getWindow().peekDecorView().getViewRootImpl() != null) {
            getWindow().peekDecorView().getViewRootImpl().dump(prefix, fd, writer, args);
        }

        mHandler.getLooper().dump(new PrintWriterPrinter(writer), prefix);
    }