Merge "Skip reading config file that does not exist" into udc-dev am: 5b61ce8ff9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/21493286 Change-Id: Ida6f5fa28dd495ef4922cfc42bc59508b088398e Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -216,6 +216,10 @@ class LetterboxConfigurationPersister {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void readCurrentConfiguration() {
|
private void readCurrentConfiguration() {
|
||||||
|
if (!mConfigurationFile.exists()) {
|
||||||
|
useDefaultValue();
|
||||||
|
return;
|
||||||
|
}
|
||||||
FileInputStream fis = null;
|
FileInputStream fis = null;
|
||||||
try {
|
try {
|
||||||
fis = mConfigurationFile.openRead();
|
fis = mConfigurationFile.openRead();
|
||||||
|
|||||||
Reference in New Issue
Block a user