Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a319f15f authored by Samuel Fufa's avatar Samuel Fufa
Browse files

Flush pending logs before sending hotseat feedback

Test: Manual
Bug: 142753423
Change-Id: I0a5d8e4d50610d2681a707231319c38d3d7191ab
parent b4d75d29
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -235,6 +235,9 @@ public final class FileLog {
     * Gets files used for FileLog
     */
    public static File[] getLogFiles() {
        try {
            flushAll(null);
        } catch (InterruptedException e) { }
        File[] files = new File[LOG_DAYS];
        for (int i = 0; i < LOG_DAYS; i++) {
            files[i] = new File(sLogsDirectory, FILE_NAME_PREFIX + i);