Skip to content

Commit

Permalink
兼容9.0
Browse files Browse the repository at this point in the history
兼容9.0
  • Loading branch information
czm0408 authored Oct 18, 2018
1 parent 1cee5e1 commit 777fdbd
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 777fdbd

Please sign in to comment.