commit | 7dc81afc4d9d2219edbfdb67bbfec8c17dde664b | [log] [tgz] |
---|---|---|
author | Samuel Fufa <sfufa@google.com> | Tue Jul 21 16:22:57 2020 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Tue Jul 21 16:22:57 2020 +0000 |
tree | 069903cd0cb1bf60b8a232e2ba087954c792b839 | |
parent | a64362ee73ddf8080b86729336f6cf064ed81710 [diff] | |
parent | 453475d568f8a0223b8e7e1bc2dc9472eb487551 [diff] |
Merge "Fix hotseat file log name formatting" into ub-launcher3-rvc-qpr-dev
diff --git a/quickstep/recents_ui_overrides/src/com/android/launcher3/hybridhotseat/HotseatFileLog.java b/quickstep/recents_ui_overrides/src/com/android/launcher3/hybridhotseat/HotseatFileLog.java index c15a596..20e1edc 100644 --- a/quickstep/recents_ui_overrides/src/com/android/launcher3/hybridhotseat/HotseatFileLog.java +++ b/quickstep/recents_ui_overrides/src/com/android/launcher3/hybridhotseat/HotseatFileLog.java
@@ -71,10 +71,9 @@ } 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);