Merge "Skip reading config file that does not exist" into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
a2c6c3ac38
@@ -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