Loading services/core/java/com/android/server/wm/TaskSnapshotPersister.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -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"); Loading Loading @@ -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); Loading Loading
services/core/java/com/android/server/wm/TaskSnapshotPersister.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -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"); Loading Loading @@ -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); Loading