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

Commit 3390511e authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Prevent getting large bitmap log error for gobo" into oc-mr1-dev

parents 3027f472 bd51856e
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -333,7 +333,6 @@ class TaskSnapshotPersister {
        }
        }


        boolean writeBuffer() {
        boolean writeBuffer() {
            final File file = getBitmapFile(mTaskId, mUserId);
            final Bitmap bitmap = Bitmap.createHardwareBitmap(mSnapshot.getSnapshot());
            final Bitmap bitmap = Bitmap.createHardwareBitmap(mSnapshot.getSnapshot());
            if (bitmap == null) {
            if (bitmap == null) {
                Slog.e(TAG, "Invalid task snapshot hw bitmap");
                Slog.e(TAG, "Invalid task snapshot hw bitmap");
@@ -361,6 +360,7 @@ class TaskSnapshotPersister {
                return true;
                return true;
            }
            }


            final File file = getBitmapFile(mTaskId, mUserId);
            try {
            try {
                FileOutputStream fos = new FileOutputStream(file);
                FileOutputStream fos = new FileOutputStream(file);
                swBitmap.compress(JPEG, QUALITY, fos);
                swBitmap.compress(JPEG, QUALITY, fos);