1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-12-23 19:31:30 +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); new InputStreamReader(process.getInputStream()), 8192);
StringBuilder log = new StringBuilder(); StringBuilder log = new StringBuilder();
String line = ""; String line = "";
String sep = System.getProperty("line.separator");
while ((line = bufferedReader.readLine()) != null) { while ((line = bufferedReader.readLine()) != null) {
log.append(line); log.append(line);
log.append(System.getProperty("line.separator")); log.append(sep);
} }
return log.toString(); return log.toString();
} catch (IOException e) { } catch (IOException e) {