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

Commit 2ccb8c2f authored by Matthew Ng's avatar Matthew Ng Committed by android-build-merger
Browse files

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

am: 3390511e

Change-Id: Ia016fa4b5ea92ae9dcfe5e8b6a0fe4584effed17
parents 8225fa28 3390511e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -333,7 +333,6 @@ class TaskSnapshotPersister {
        }

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

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