commit cff61d1b9bcb33906a7ad4d54b40e73025e3f098 Author: lexi bird.s.lex@gmail.com Date: Tue Feb 27 12:53:22 2018 -0500
Newlines were not being read from LICENSE in about dialog --- app/src/main/java/org/torproject/android/OrbotMainActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/app/src/main/java/org/torproject/android/OrbotMainActivity.java b/app/src/main/java/org/torproject/android/OrbotMainActivity.java index cbc7349e..1f24ec36 100644 --- a/app/src/main/java/org/torproject/android/OrbotMainActivity.java +++ b/app/src/main/java/org/torproject/android/OrbotMainActivity.java @@ -521,14 +521,14 @@ public class OrbotMainActivity extends AppCompatActivity .show(); }
- public static String readFromAssets(Context context, String filename) throws IOException { + private static String readFromAssets(Context context, String filename) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(context.getAssets().open(filename)));
// do reading, usually loop until end of file reading StringBuilder sb = new StringBuilder(); String mLine = reader.readLine(); while (mLine != null) { - sb.append(mLine); // process line + sb.append(mLine + '\n'); // process line mLine = reader.readLine(); } reader.close();