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

Commit c1d94bbd authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 10942032 from 9949b8da to 24Q1-release

Change-Id: I72186e62ee5d6b0d373714b033516d01cb3e6972
parents e9766b4f 9949b8da
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -186,6 +186,9 @@ public class FastBitmapDrawable extends Drawable implements Drawable.Callback {
            mAlpha = alpha;
            mPaint.setAlpha(alpha);
            invalidateSelf();
            if (mBadge != null) {
                mBadge.setAlpha(alpha);
            }
        }
    }

+7 −1
Original line number Diff line number Diff line
@@ -46,6 +46,7 @@ import com.android.app.viewcapture.data.MotionWindowData;
import com.android.app.viewcapture.data.ViewNode;
import com.android.app.viewcapture.data.WindowData;

import java.io.DataOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.util.ArrayList;
@@ -175,7 +176,12 @@ public abstract class ViewCapture {
    @AnyThread
    protected void dumpTo(OutputStream os, Context context)
            throws InterruptedException, ExecutionException, IOException {
        if (mIsEnabled) getExportedData(context).writeTo(os);
        if (mIsEnabled) {
            DataOutputStream dataOutputStream = new DataOutputStream(os);
            ExportedData ex = getExportedData(context);
            dataOutputStream.writeInt(ex.getSerializedSize());
            ex.writeTo(dataOutputStream);
        }
    }

    @VisibleForTesting