mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-30 05:48:09 +00:00
do not show the clone screen if the store is "just" empty
This commit is contained in:
parent
4ada6df1e5
commit
032e6fc756
@ -140,11 +140,9 @@ public class PasswordRepository {
|
||||
}
|
||||
|
||||
// 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();
|
||||
}
|
||||
|
||||
if (!PasswordRepository.getPasswords(dir).isEmpty()) {
|
||||
} else if (dir.listFiles().length > 0) {
|
||||
settings.edit().putBoolean("repository_initialized", true).apply();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user