do not show the clone screen if the store is "just" empty

This commit is contained in:
zeapo 2017-09-10 15:03:01 +02:00
parent 4ada6df1e5
commit 032e6fc756

View file

@ -140,11 +140,9 @@ public class PasswordRepository {
} }
// uninitialize the repo if the dir does not exist or is absolutely empty // uninitialize the repo if the dir does not exist or is absolutely empty
if (!dir.exists() || !dir.isDirectory() || FileUtils.listFiles(dir, null, false).isEmpty()) { if (!dir.exists() || !dir.isDirectory()) {
settings.edit().putBoolean("repository_initialized", false).apply(); settings.edit().putBoolean("repository_initialized", false).apply();
} } else if (dir.listFiles().length > 0) {
if (!PasswordRepository.getPasswords(dir).isEmpty()) {
settings.edit().putBoolean("repository_initialized", true).apply(); settings.edit().putBoolean("repository_initialized", true).apply();
} }