diff --git a/src/com/android/launcher3/LauncherBackupHelper.java b/src/com/android/launcher3/LauncherBackupHelper.java index 2d11d3af12..48d9351ab5 100644 --- a/src/com/android/launcher3/LauncherBackupHelper.java +++ b/src/com/android/launcher3/LauncherBackupHelper.java @@ -1103,12 +1103,6 @@ public class LauncherBackupHelper implements BackupHelper { } } catch (IOException e) { Log.w(TAG, "failed to close the journal", e); - } finally { - try { - inStream.close(); - } catch (IOException e) { - Log.w(TAG, "failed to close the journal", e); - } } return journal; } @@ -1142,7 +1136,6 @@ public class LauncherBackupHelper implements BackupHelper { outStream = new FileOutputStream(newState.getFileDescriptor()); final byte[] journalBytes = writeCheckedBytes(journal); outStream.write(journalBytes); - outStream.close(); if (VERBOSE) Log.v(TAG, "wrote " + journalBytes.length + " bytes of journal"); } catch (IOException e) { Log.w(TAG, "failed to write backup journal", e);