summaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorحسين <zidhussein@gmail.com>2018-10-17 21:09:32 +0100
committerحسين <zidhussein@gmail.com>2018-10-17 21:09:32 +0100
commit85df10af04fdb3a87f47d28fec5bb3f5045acf1b (patch)
tree6d137e00c0ffb1e61461b9b2af3e9ff527a65208 /app/src
parent88721f5905e2a92dd2f5bef7dcba6a98f9b56185 (diff)
set default sort order
resolves #437
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/utils/PasswordRepository.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRepository.java b/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRepository.java
index a44b10a9..fdb53ac4 100644
--- a/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRepository.java
+++ b/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRepository.java
@@ -280,7 +280,7 @@ public class PasswordRepository {
}
public static PasswordSortOrder getSortOrder(SharedPreferences settings) {
- return valueOf(settings.getString("sort_order", null));
+ return valueOf(settings.getString("sort_order", FOLDER_FIRST.name()));
}
}
}