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

Commit bd51856e authored by Matthew Ng's avatar Matthew Ng
Browse files

Prevent getting large bitmap log error for gobo

Forgotten to move a line of code to the area to ignore loading large
bitmaps causing an error log. The code related is ag/2579729.

Test: manual - boot gobo device and read log
Change-Id: Iaeedf80b6fa25331f7db09e21db84574a53939b3
Fixes: 65127030
parent f3f7a101
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);