Merge "Avoid reading XML file when it doesn't exist." into sc-dev am: 1ef8f5338d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13713620 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Id7374f0144f038480d1fc91ab4d8cd5f937af311
This commit is contained in:
@@ -137,6 +137,11 @@ public class GameManagerSettings {
|
||||
boolean readPersistentDataLocked() {
|
||||
mGameModes.clear();
|
||||
|
||||
if (!mSettingsFile.exists()) {
|
||||
Slog.v(GameManagerService.TAG, "Settings file doesn't exists, skip reading");
|
||||
return false;
|
||||
}
|
||||
|
||||
try {
|
||||
final FileInputStream str = mSettingsFile.openRead();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user