From 85df10af04fdb3a87f47d28fec5bb3f5045acf1b Mon Sep 17 00:00:00 2001 From: حسين Date: Wed, 17 Oct 2018 21:09:32 +0100 Subject: set default sort order resolves #437 --- app/src/main/java/com/zeapo/pwdstore/utils/PasswordRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src') 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())); } } } -- cgit v1.2.3