Skip to content

Commit

Permalink
fix(devtools): fix alpha screencast
Browse files Browse the repository at this point in the history
  • Loading branch information
lavnFan authored and zoomchan-cxj committed Apr 27, 2022
1 parent 785edb3 commit 8604f1a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Matrix;
import android.os.Build;
import android.text.TextUtils;
Expand Down Expand Up @@ -147,6 +148,7 @@ private JSONObject getScreenCastData(HippyEngineContext context) {
screenBitmap = bitmap;
}
Canvas canvas = new Canvas(bitmap);
canvas.drawColor(Color.WHITE);
hippyRootView.draw(canvas);
if (scale != 1.0f) {
Matrix matrix = new Matrix();
Expand Down

0 comments on commit 8604f1a

Please sign in to comment.