Merge "Fix logspam from AppIdleHistory on first boot" into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
9982b68932
@@ -61,6 +61,7 @@ import java.io.BufferedOutputStream;
|
||||
import java.io.BufferedReader;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.FileReader;
|
||||
import java.io.IOException;
|
||||
@@ -802,6 +803,9 @@ public class AppIdleHistory {
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (FileNotFoundException e) {
|
||||
// Expected on first boot
|
||||
Slog.d(TAG, "App idle file for user " + userId + " does not exist");
|
||||
} catch (IOException | XmlPullParserException e) {
|
||||
Slog.e(TAG, "Unable to read app idle file for user " + userId, e);
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user