Avoid showing download path warning for the first time

This commit is contained in:
seven332 committed 2016-04-08 02:02:09 +08:00
1 parent b3881f8562
commit 87c27b6256
1 file changed
+2 -1
@@ -390,7 +390,8 @@ public final class MainActivity extends StageActivity
private void checkDownloadLocation() {
UniFile uniFile = Settings.getDownloadLocation();
if (null != uniFile && uniFile.ensureDir()) {
// null == uniFile for first start
if (null == uniFile || uniFile.ensureDir()) {
return;
}
new AlertDialog.Builder(this)