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

Commit 453475d5 authored by Samuel Fufa's avatar Samuel Fufa
Browse files

Fix hotseat file log name formatting

Bug: 161001172
Test: Manual
Change-Id: Ia03eeb897003267ce608430c94b3b01876939234
parent a8c08584
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -71,10 +71,9 @@ public class HotseatFileLog {
    }

    private PrintWriter getWriter() {
        String fName = FILE_NAME_PREFIX + (LOG_DAYS % 10);
        if (fName.equals(mFileName)) return mCurrentWriter;

        Calendar cal = Calendar.getInstance();
        String fName = FILE_NAME_PREFIX + (cal.get(Calendar.DAY_OF_YEAR) % 10);
        if (fName.equals(mFileName)) return mCurrentWriter;

        boolean append = false;
        File logFile = new File(mLogsDir, fName);