From df1109cde56acb8538256bdeccbc47664aea4f4a Mon Sep 17 00:00:00 2001 From: Johannes Baiter Date: Wed, 29 Oct 2014 02:05:20 +0100 Subject: Add filtering to password list --- .../java/com/zeapo/pwdstore/PasswordFragment.java | 14 ++++++++ .../java/com/zeapo/pwdstore/PasswordStore.java | 41 +++++++++++++++++++++- 2 files changed, 54 insertions(+), 1 deletion(-) (limited to 'app/src/main/java') diff --git a/app/src/main/java/com/zeapo/pwdstore/PasswordFragment.java b/app/src/main/java/com/zeapo/pwdstore/PasswordFragment.java index 4e8ef5ef..4d433013 100644 --- a/app/src/main/java/com/zeapo/pwdstore/PasswordFragment.java +++ b/app/src/main/java/com/zeapo/pwdstore/PasswordFragment.java @@ -126,6 +126,20 @@ public class PasswordFragment extends Fragment{ ((ActionBarActivity) getActivity()).getSupportActionBar().setDisplayHomeAsUpEnabled(false); } + public void filterAdapter(String filter) { + if (filter.isEmpty()) { + updateAdapter(); + return; + } + for (int i=0; i Date: Wed, 29 Oct 2014 02:55:26 +0100 Subject: Fix filtering when loosening query --- .../main/java/com/zeapo/pwdstore/PasswordFragment.java | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'app/src/main/java') diff --git a/app/src/main/java/com/zeapo/pwdstore/PasswordFragment.java b/app/src/main/java/com/zeapo/pwdstore/PasswordFragment.java index 4d433013..6058d169 100644 --- a/app/src/main/java/com/zeapo/pwdstore/PasswordFragment.java +++ b/app/src/main/java/com/zeapo/pwdstore/PasswordFragment.java @@ -129,13 +129,15 @@ public class PasswordFragment extends Fragment{ public void filterAdapter(String filter) { if (filter.isEmpty()) { updateAdapter(); - return; - } - for (int i=0; i