Skip to content

Commit

Permalink
Newlines were not being read from LICENSE in about dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
lexi committed Feb 27, 2018
1 parent fb912d7 commit cff61d1
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -521,14 +521,14 @@ private void showAbout ()
.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();
Expand Down

0 comments on commit cff61d1

Please sign in to comment.