Merge "Flush pending logs before sending hotseat feedback" into ub-launcher3-rvc-dev

This commit is contained in:
Samuel Fufa
2020-05-28 23:57:04 +00:00
committed by Android (Google) Code Review
@@ -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);