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

Commit 01f2673a authored by Stefan Andonian's avatar Stefan Andonian Committed by Android (Google) Code Review
Browse files

Merge "Don't add ViewCapture Data to the Bugreport if it is empty and disabled." into tm-qpr-dev

parents bf797435 84ab7bc0
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