avoid empty directory

This commit is contained in:
Mohamed Zenadi 2015-06-17 21:51:33 +02:00
parent bb8cc0412f
commit 511e9fe838

View File

@ -203,7 +203,7 @@ public class PasswordStore extends AppCompatActivity {
localDir.mkdir();
try {
PasswordRepository.createRepository(localDir);
new File(localDir.getAbsolutePath() + "/.gpg-id").createNewFile();
settings.edit().putBoolean("repository_initialized", true).apply();
} catch (Exception e) {
e.printStackTrace();