From 6b5f21479ebde693457ecee1f61341b91732c0e0 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 10 Oct 2013 10:12:09 -0400 Subject: [PATCH 1/2] [Android] No need to call flush() before closing a stream. close() calls the flush method before actually closing the stream. --- android/phoenix/src/org/retroarch/browser/MainMenuActivity.java | 1 - 1 file changed, 1 deletion(-) diff --git a/android/phoenix/src/org/retroarch/browser/MainMenuActivity.java b/android/phoenix/src/org/retroarch/browser/MainMenuActivity.java index 9e4d163c09..87c4f6ef19 100644 --- a/android/phoenix/src/org/retroarch/browser/MainMenuActivity.java +++ b/android/phoenix/src/org/retroarch/browser/MainMenuActivity.java @@ -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(); } } From e177f6f35a005ed71693d205331da55a8581c78d Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 10 Oct 2013 10:31:03 -0400 Subject: [PATCH 2/2] [Android] Add comments to prefs.xml to clarify which section starts where within the XML. --- android/phoenix/res/xml/prefs.xml | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/android/phoenix/res/xml/prefs.xml b/android/phoenix/res/xml/prefs.xml index c6a302437f..f953cffd25 100644 --- a/android/phoenix/res/xml/prefs.xml +++ b/android/phoenix/res/xml/prefs.xml @@ -2,26 +2,35 @@ + + + + + + + + + + + + + - - - - + + + + + + + + + + +