Skip to content

Commit

Permalink
Merge pull request gzu-liyujiang#200 from czm0408/patch-2
Browse files Browse the repository at this point in the history
兼容9.0
  • Loading branch information
liyujiang-gzu authored Oct 18, 2018
2 parents 1cee5e1 + 7294821 commit dab4bfb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ public static Bitmap toBitmap(View view) {
Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
Canvas canvas = new Canvas(bitmap);
canvas.drawBitmap(cacheBitmap, 0, 0, null);
canvas.save(Canvas.ALL_SAVE_FLAG);
canvas.save();
canvas.restore();
if (!bitmap.isRecycled()) {
LogUtils.verbose("recycle bitmap: " + bitmap.toString());
Expand Down

0 comments on commit dab4bfb

Please sign in to comment.