1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-12-23 11:21:29 +00:00

Cache line separator

This commit is contained in:
Lode Hoste 2015-04-12 23:24:44 +02:00
parent 97bbeadc6a
commit 09331780b3

View file

@ -142,9 +142,10 @@ public class LogActivity extends SyncthingActivity {
new InputStreamReader(process.getInputStream()), 8192);
StringBuilder log = new StringBuilder();
String line = "";
String sep = System.getProperty("line.separator");
while ((line = bufferedReader.readLine()) != null) {
log.append(line);
log.append(System.getProperty("line.separator"));
log.append(sep);
}
return log.toString();
} catch (IOException e) {