[Android] No need to call flush() before closing a stream. close() calls the flush method before actually closing the stream.

This commit is contained in:
Lioncash 2013-10-10 10:12:09 -04:00
parent 05f6226544
commit 6b5f21479e

View File

@ -131,7 +131,6 @@ public final class MainMenuActivity extends PreferenceActivity {
new FileOutputStream(new File(dataDir, relativePath)));
writer.write(asset, 0, asset.length);
writer.flush();
writer.close();
}
}