Merge "Explicitly flush compress/encrypt stream before close" into nyc-mr1-dev

This commit is contained in:
Chris Tate
2016-07-12 22:46:59 +00:00
committed by Android (Google) Code Review

View File

@@ -4328,7 +4328,10 @@ public class BackupManagerService {
Slog.e(TAG, "Internal exception during full backup", e);
} finally {
try {
if (out != null) out.close();
if (out != null) {
out.flush();
out.close();
}
mOutputFile.close();
} catch (IOException e) {
/* nothing we can do about this */