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

Commit 84ab7bc0 authored by Stefan Andonian's avatar Stefan Andonian
Browse files

Don't add ViewCapture Data to the Bugreport if it is empty and disabled.

This makes the bug reports look strange in the go/web-hv UI, and is
wasting space.

Bug: 224595733
Test: Verified that there is no view capture data printed to bugreports
when the wintrace developer tile is disabled.

Change-Id: I1cbd4082ea4e55646ab7e6c628430418a47d94b5
parent 0e9853b1
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -156,6 +156,9 @@ public abstract class ViewCapture {
     * Dumps all the active view captures
     */
    public void dump(PrintWriter writer, FileDescriptor out, Context context) {
        if (!mIsEnabled) {
            return;
        }
        ViewIdProvider idProvider = new ViewIdProvider(context.getResources());

        // Collect all the tasks first so that all the tasks are posted on the executor