From df1109cde56acb8538256bdeccbc47664aea4f4a Mon Sep 17 00:00:00 2001 From: Johannes Baiter Date: Wed, 29 Oct 2014 02:05:20 +0100 Subject: [PATCH 1/3] Add filtering to password list --- .../com/zeapo/pwdstore/PasswordFragment.java | 14 ++++++ .../com/zeapo/pwdstore/PasswordStore.java | 41 +++++++++++++++++- .../res/drawable-hdpi/ic_action_search.png | Bin 0 -> 702 bytes .../res/drawable-mdpi/ic_action_search.png | Bin 0 -> 479 bytes .../res/drawable-xhdpi/ic_action_search.png | Bin 0 -> 900 bytes .../res/drawable-xxhdpi/ic_action_search.png | Bin 0 -> 1153 bytes app/src/main/res/menu/pwdstore.xml | 11 ++++- app/src/main/res/values/strings.xml | 1 + 8 files changed, 64 insertions(+), 3 deletions(-) create mode 100644 app/src/main/res/drawable-hdpi/ic_action_search.png create mode 100644 app/src/main/res/drawable-mdpi/ic_action_search.png create mode 100644 app/src/main/res/drawable-xhdpi/ic_action_search.png create mode 100644 app/src/main/res/drawable-xxhdpi/ic_action_search.png 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`- zYT3@c^WFKbjfR7RgM&i_cse#237;HVvt20r{a~c`dF|yDzzbtGju@$VR-^F1ro_g2$1rRf{V;Sp=H5*BpHGX zIl@TxNvBIS72F1uKc^v7`UMpEELyYM?S4VFolfV2+^tRP`!N1)lmIC40FO(iJSaXv z1!dO4ydNTQMI_qr+e30X2%Jf}PM>p|nd(OO0+cEl=4CSp1uu)27NuV! z1lWi6MFFdTIrkpaPJn`!9rdQ_$0+--4Ae7m0=|$obs)>xyH*#n8vmX^DwGF0(B(>t zdI?aa8vUo}v{ap_y4yeUudhY*07*qoM6N<$f@EtW!Ti(^`#)-zx#^ji+0NFC1by}d3d=;zzAt%~TnHRcUe_h#B`??G9``=?>wDDq zu5A7U@b3X``UFK$6rgy3uiybcF5x+OmSyF+0J9#+A31rORqzi$9K->T{0YS!S1G{} zi8Qy-^8_AqJGH%v0azoa5$;XmhByLA;S2cN(3$W%*4%R?CqtV;@yyi?-d#wX0+amU zN?wCdJPY>{04uYu1Nt&kzm@<9cw~A&UzPptSb*xO+Ffcwf&Q;sS5&abY!=+lOQI=TT5ycC$M*WVo9~vrJCnnMl`|= zi%gT13}#{~E;YkcqW~DfDBQZX+m%^!#E^LHYM`AEGs!azh?j=PP6+8QBHbeEyS7V8 z8es2$NG}e+)7%De`zs%%4v0pLm|x<8DT?A0hT#`}F5xHmJHU?KU$p6u$pr8tzyP+N VjEWx1<;nm6002ovPDHLkV1lr>(e3~M literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-xhdpi/ic_action_search.png b/app/src/main/res/drawable-xhdpi/ic_action_search.png new file mode 100644 index 0000000000000000000000000000000000000000..aad535e9781380fe111046fa0bbd14de899c7a39 GIT binary patch literal 900 zcmV-~1AF|5P)n&Xh zIyrLelkdCt-rak45RgbD5{X12k&aWLi%!Sm@c<4N&@S;5|NRDyLEA!GuU4z#-~hnD zM{t-x8#TC`gUF#R0LHr40AS!L9A?mB!!9yt&j5n;4gd^(3WuAT%L;@O*I2|8K*)Ll z0R8+9T3RuqycP1S!hH$eb5j9i4)-kk0N_sH>je&gwRD}%AcPjpp8N2^(2}MYJVkx) zVx(H~FfnF^wsqUZhRYOyocPRaCMyW^ zzm(W@iA)OsR&STmYB04l_< z`1wgVoxnNXe#8HN4b1*Cv~xMvfWDkph}#rJCkm4-^Z7+xDGQ_hZB4$v#7dEW0Cqqq zLFAa#F~ue))!0Wkg<#{wNZYqUVtUOgEF#1H6TI%xRK%(Frv|An zFRVUupNGCa;y^|5_;4nyJXdhti*CGeVgZV1UcMYnYw`;2BAIHPSCq)Bw&o9QEg^In zU@&2liy5rR-oE0^lXVDA0knkoRpAQOA)EyMD$%&^-gHauGk`)9mJx)=*U>|i=RxvH zi2ijtGg%$H1;7Wv2jdz-F4C`8~hq z*bxGPAP9mW2!bF8f*=TjAP9n-YsBeduCK3Cc^K2j@3NJ$<@CAu`1mLQz^=isJ zg&tq0gKV!7Lv0IW{*{F37I!4l}(nh^Jk^WZ#kVEj`t-^m~; zMvy}=vQxqfo387>@TJ0|1rr4gQ8WGLiKPh{+`QcxbadccK6<4-8nG#UTJ<&99* zV}g*%>syBI0SiN(e{gO5h7jhINreZ1djH%s;P!b#1Yv6kMaxhly;P<0oI6T$ zziLLEB{%@OlryuDYIe}3#kCF>0A)T&3j_4!1)0eULh}IKv_Qe6_}LjUq9h~$SB8Si zyC?*f4X=5y08*|1sIz^o001In4@d>% z6+j6S`UQ{=^uCKw0O)kd%-BiD0CYDpVK(iX1`B{5^Rccp4c8J>2+|c@Qw}#ro|tm3 z4V(dBGVgw)%iK6s>NWtF=6x0n?oT)M{25XjT8#s`9yRyr1@sVJmkhiI1%R|OOjF!? zjQzT2)CIRiT2=tiyt}R_ThOAZzO@qid8&W+2n(ika41_*5=_LfAuT*qL-Z80xpb~~D!5vfbuo)>ifqyuU5wX#a0|1mo&U53ioQ{Trm)q_5l|uzFpML&#Hc-bOv=5H3U8R7}C>j7mBF(@@J05&-ZEAqN0|5IQgPjlL4@2;mKdm_G=){N4rt{6MJw7nQJw zIw7Y5tOS65At-~t*$6uT&R1R* literal 0 HcmV?d00001 diff --git a/app/src/main/res/menu/pwdstore.xml b/app/src/main/res/menu/pwdstore.xml index a3f44f73..c6b25043 100644 --- a/app/src/main/res/menu/pwdstore.xml +++ b/app/src/main/res/menu/pwdstore.xml @@ -1,10 +1,17 @@ + + @@ -17,7 +24,7 @@ Category + Search From ac57d0d6d43a5029aa010c4fee11c4df93fb092e Mon Sep 17 00:00:00 2001 From: Johannes Baiter Date: Wed, 29 Oct 2014 02:55:26 +0100 Subject: [PATCH 2/3] Fix filtering when loosening query --- .../com/zeapo/pwdstore/PasswordFragment.java | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) 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 Date: Wed, 29 Oct 2014 11:13:40 +0100 Subject: [PATCH 3/3] Use Holo Dark search icon --- .../res/drawable-hdpi/ic_action_search.png | Bin 702 -> 650 bytes .../res/drawable-mdpi/ic_action_search.png | Bin 479 -> 449 bytes .../res/drawable-xhdpi/ic_action_search.png | Bin 900 -> 827 bytes .../res/drawable-xxhdpi/ic_action_search.png | Bin 1153 -> 1152 bytes 4 files changed, 0 insertions(+), 0 deletions(-) diff --git a/app/src/main/res/drawable-hdpi/ic_action_search.png b/app/src/main/res/drawable-hdpi/ic_action_search.png index f594b4e482c7db630737b6b68c8646726480d4af..772e3598edb5441a68bb184f9c85e17109ebd6ee 100644 GIT binary patch delta 588 zcmV-S0<- z`kAsvnGoVKY5=6PPd{_w8L?ZkBqvUZcLe4<8UV2NirBBQZGT6c^x+lJ!0M4=ajDdi zm|NK+4wUT~@tQznMgTzhSP2nn)qTZ!2{Ht`4D4H%Ath>r%?DHDK)lrn3G9vFl_J3x zgO(~%A}0O@uN&-li9eZ)<&etz?8SS8MiV(6lk?S7j!I7&Yv$~_aV0_W9&qcHBzbQD zW<>&4C2S2!N`K_`2LK6Jxcb<-V*FO09Jen+c!0MDU6sCbiR@lOXw>xQ0c1*h&;@xV zvikvml365O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_5=#cM9sc0d6!%W98g}@CF3P8*W(`dKKJW;)c3Az{si#v0dD#PMNt%> zc!00q0Y5I`IeC_4<+%W}9?2g$d7D-64?rBm0g(I&#T{2E!G95nG`G?71RircwY`b~ zSRWx z`Z80$mH-HNWO_hfmHqBmfa=;x_-*a*zGg-|RlL391SS1BO%MkaO1;oTGSS9vN zJ{o|v{gbPy3x5J_bY!=+lOQI=TT5ycC$M*WVo9~vrJCnnMl`|=i%gT13}#{~E;Ykc zqW~DfDBQZX+m%^!#E^LHYM`AEGs!azh?j=PP6+8QBHbeEyS7V88es2$NG}e+)7%De z`zs%%4v0pLm|x<8DT?A0hT#`}F5xHmJHU?KU$p6u$r%LjBftQ*pNxtg%jL=d0000< KMNUMnLSTaD7{lcN diff --git a/app/src/main/res/drawable-xhdpi/ic_action_search.png b/app/src/main/res/drawable-xhdpi/ic_action_search.png index aad535e9781380fe111046fa0bbd14de899c7a39..19658e4a2acbe30df1aeb743ba5ac5e16a5edd21 100644 GIT binary patch delta 767 zcmVQV$!bPVBVtRI%-Y$1Mq`o~jr3`ErClYjMJb2z{GK-H_)bm zT@=vX07Nx705JJAJeCcwp}FS`fY2gd0YWhd0OaRe!_Vy%Me{E0RfX^A*zkA-2txQ6 z0)VZ<*Grl})zNi&gP`q(K{z<_bpcCl9s`rTL%YIGCm_nZ>I zUBGuXj+O6hu7A+ShGK`-v_)|37XYl%gXOPfh}r+3SK1Ag4FFmRGwK(K4lW1F3Km=}U}pV%OcIs9t-$Pi&IQ2SvFE2!={P*G*#-1Ur98LW zeNVVqz|FF^TLP&2SP{+uD(jH)>j0el3QUfGTXO(#YJV7HDgft{0k<^(%FIkFcuX-M zu&mqyaOC0w_F$%z8OGL=qqxEbz~0UbVk ziuO+p`G5W=Rf_ll_yK|jaipxSa_sSQk8?y)2r({3y50(zDR6zoB5)_j$xZOR=UBzk zSXX1{`%7xRaR4X%t^=N$ x$_6SU1I@|ji`4&5Boc{4B9TZW8k7DBFaWjb9TtHJeu)48002ov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