mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-30 22:05:19 +00:00
do not show the clone screen if the store is "just" empty
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user