From 86b4f3ad03da5da60af4f1ded68ff164e50ba642 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Sun, 27 Apr 2014 13:36:37 +0200 Subject: [PATCH] Added default drawables for folders and for files without icons. --- res/drawable-hdpi/ic_doc_album.png | Bin 0 -> 1439 bytes res/drawable-hdpi/ic_doc_audio_am.png | Bin 0 -> 1222 bytes res/drawable-hdpi/ic_doc_image.png | Bin 0 -> 773 bytes res/drawable-hdpi/ic_doc_video_am.png | Bin 0 -> 736 bytes res/drawable-hdpi/ic_root_folder_am.png | Bin 0 -> 508 bytes res/drawable-mdpi/ic_doc_album.png | Bin 0 -> 1040 bytes res/drawable-mdpi/ic_doc_audio_am.png | Bin 0 -> 858 bytes res/drawable-mdpi/ic_doc_image.png | Bin 0 -> 636 bytes res/drawable-mdpi/ic_doc_video_am.png | Bin 0 -> 609 bytes res/drawable-mdpi/ic_root_folder_am.png | Bin 0 -> 442 bytes res/drawable-xhdpi/ic_doc_album.png | Bin 0 -> 1790 bytes res/drawable-xhdpi/ic_doc_audio_am.png | Bin 0 -> 1596 bytes res/drawable-xhdpi/ic_doc_image.png | Bin 0 -> 936 bytes res/drawable-xhdpi/ic_doc_video_am.png | Bin 0 -> 838 bytes res/drawable-xhdpi/ic_root_folder_am.png | Bin 0 -> 582 bytes res/drawable-xxhdpi/ic_doc_album.png | Bin 0 -> 1728 bytes res/drawable-xxhdpi/ic_doc_audio_am.png | Bin 0 -> 1574 bytes res/drawable-xxhdpi/ic_doc_image.png | Bin 0 -> 713 bytes res/drawable-xxhdpi/ic_doc_video_am.png | Bin 0 -> 1486 bytes res/drawable-xxhdpi/ic_root_folder_am.png | Bin 0 -> 1263 bytes .../controldlna/utility/FileArrayAdapter.java | 34 +++++++++++++++--- .../controldlna/utility/RemoteImageView.java | 2 -- 22 files changed, 29 insertions(+), 7 deletions(-) create mode 100644 res/drawable-hdpi/ic_doc_album.png create mode 100644 res/drawable-hdpi/ic_doc_audio_am.png create mode 100644 res/drawable-hdpi/ic_doc_image.png create mode 100644 res/drawable-hdpi/ic_doc_video_am.png create mode 100644 res/drawable-hdpi/ic_root_folder_am.png create mode 100644 res/drawable-mdpi/ic_doc_album.png create mode 100644 res/drawable-mdpi/ic_doc_audio_am.png create mode 100644 res/drawable-mdpi/ic_doc_image.png create mode 100644 res/drawable-mdpi/ic_doc_video_am.png create mode 100644 res/drawable-mdpi/ic_root_folder_am.png create mode 100644 res/drawable-xhdpi/ic_doc_album.png create mode 100644 res/drawable-xhdpi/ic_doc_audio_am.png create mode 100644 res/drawable-xhdpi/ic_doc_image.png create mode 100644 res/drawable-xhdpi/ic_doc_video_am.png create mode 100644 res/drawable-xhdpi/ic_root_folder_am.png create mode 100644 res/drawable-xxhdpi/ic_doc_album.png create mode 100644 res/drawable-xxhdpi/ic_doc_audio_am.png create mode 100644 res/drawable-xxhdpi/ic_doc_image.png create mode 100644 res/drawable-xxhdpi/ic_doc_video_am.png create mode 100644 res/drawable-xxhdpi/ic_root_folder_am.png diff --git a/res/drawable-hdpi/ic_doc_album.png b/res/drawable-hdpi/ic_doc_album.png new file mode 100644 index 0000000000000000000000000000000000000000..179db33f3dcb841fd4c9cf9cd1f9e7299fc00d89 GIT binary patch literal 1439 zcmZ`(c~sH~5dLwBH(8>lrde5<79OodtoIptA&NcBJOED?Qd2y`(k++VY@x$a0}(az zYH9OK*m5`R0>#ZX^U74TbjfS8EEo5`{bS#}Z@xD(@0*!7e@szOfRDDuRt*3EwEcWN z@hV1d00CEdB6#(jilA|B{%!zp=c49XG)xtPQt>|SK;v_h8C75&>x=gXfGkS@U=;ws zCsm520Dx1fF0)YpfVl<$28^=yV63VDkHPtP0_z*byI;dmWz-qI$5K`7`!BqElbluK z=zgAVg!qxU(&0c7#pIETG$F&#v{}DUJDgK=<9HMgc0se~cPO3Fp^Pbx{P+mF4jYVQ ziZvUnEsd%DRV9hxZiXoRGW&J|g^jQ5Al`C)IHy_F8>r5-L zeb9Kb{y|MG&`GOFEoIN`%+QH$FamUf=N?fbXMP`T-o00SR5rIeZM}qx9|J|g5Zv-n z0B$AX=)7f*4}PHoxsjeseHkbMvM{x^|ghz3fIL zUfnBRdea^E3m`&0)z#5?`RbL$CEsf}9FFKv`V_3>MS`^mONvHbL$NhzC8z@h1Ypk$Ryz?yj zx_cRGyo_XMP^6Q}y-H|kSWdnAGS~ve{-RS~nIj%XIDC z-AcvhZIh;i*73k>&>~iA2&&6q*5QwSpP2(n;pEicH>6k~U}kkkU_Fb49pi zXCH<@Aaoy#OKb-R2V5_CA&Ic`CkS=mL-6BK=9Z0>m4+|juh^%P6B77h@y$DT?A-aX z1i53Amms*ZPcf@H3Oytw1dfC{Lq~+2M)QiySqpPWJzwL{_~NQ!W+s|UE?^uyYL0ZR zot*!TSmXOH$#VvCL59BYBHYH3kdCLeV}wUH#p?19|6-Jpg^ zj1!~``o6M1OVmXjra2bHng~jjy38tEx~);*E!7X&mF5+mMvhLSU}94!Dgx}$b`G}a zL$>y4g1tS)5sf+EWQ%sfpwV3sDDi&;G&(tfn)&|%DX0;m5*Tev2%%HcGNMx`fE$?} fLoxTGMaNO_lxTA1$zICFqXhiC0z4btqt5&Tw8(GD literal 0 HcmV?d00001 diff --git a/res/drawable-hdpi/ic_doc_audio_am.png b/res/drawable-hdpi/ic_doc_audio_am.png new file mode 100644 index 0000000000000000000000000000000000000000..465838d1e27ff4f58cf71c0b5bc691681aa66501 GIT binary patch literal 1222 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDA1|-9oezpTCmUKs7M+SzC{oH>NS%G}U;vjb? zhIQv;UIIA^$sR$z3=CCj3=9n|3=F@3LJcn%7)pVryh>nTu$sZZAYL$MSD+10f-TA0 z-G$*l2rk&Wd@@jkv%n*=7)X17vD?XPI|c^kX`U{QAsP4H-rSiV6Dq>?;l55>!JM;( zjtN4I92_bwA}tvU7&`eb1uA;|)6tSriPCCO3UujcQWMIKIFhzar!V)-jWa#%kLDcb z*_Li{e%?m)BlEwM+^>4~^PKJJz26I4l<(YL@uui~r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<);T3K0RTy-4`2WQ literal 0 HcmV?d00001 diff --git a/res/drawable-hdpi/ic_doc_image.png b/res/drawable-hdpi/ic_doc_image.png new file mode 100644 index 0000000000000000000000000000000000000000..72b611db3e64b7d568ff33f1dd8e5146397bc66f GIT binary patch literal 773 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDA1|-9oezpTCmUKs7M+SzC{oH>NS%G}U;vjb? zhIQv;UIIA^$sR$z3=CCj3=9n|3=F@3LJcn%7)pVryh>nTu$sZZAYL$MSD+10f-TA0 z-G$*l2rk&Wd@@jkv%n*=7)X17vD?XPJD~AbJzX3_GVZ;->63s6flNF5zd|u5HD_Grifa`QbN2%AX7e{~T zpJEX!V9pof_IXsbCYw{|___UlIvXxc-?!!Uou!>AjaSgnny>|}egCX?ALA}D=+(Y4 z-7Bf)K-ujAG4Yn(VEKxm$l? z`v&&wNq3TKawi=)cjKe+3$Y_xHgJb0pJA@it9(~hbJ)5@e%k@gIqN0v3%6ZQyK}HT zzV5a{%6pZ*N6POWW_G@r#o@#8c)wO`OwZR`og{m|#~lVAkGGib7yrDYe|m&e+X01~ zBbJGa^f`rVSKpt0TWs5r9nLcjJMRfCjNq+4`r<)E>yB*(Thdy1?jAK(EdHN!Lq%=T z0Uf@u%nK%rhc>*@ihC=iAJDBcVb-eE7pnId?W&*CtyOnp6_?GS$%3WxKJfn7GL0!d zDN`nuDVMdKOF1p*WQ?xx3r=-qU(2Lbx)-MKO!;(Qesh}9>$&nVaSqdkn0JEGm1>D= zL`h0wNvc(HQ7VvPFfuSS)-|xyH8Kb>GO{u;urf8*H88g_FxVF(wjV`9ZhlH;S|x4` z=NZ>A12ss3YzWRzD=AMbN@Z|N$xljE@XSq2PYp^md44$rjF6*2UngG2E BGll>F literal 0 HcmV?d00001 diff --git a/res/drawable-hdpi/ic_doc_video_am.png b/res/drawable-hdpi/ic_doc_video_am.png new file mode 100644 index 0000000000000000000000000000000000000000..9a942d28e66a971d1100825c52b50f3e99e5ee1f GIT binary patch literal 736 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDA1|-9oezpTCmUKs7M+SzC{oH>NS%G}U;vjb? zhIQv;UIIA^$sR$z3=CCj3=9n|3=F@3LJcn%7)pVryh>nTu$sZZAYL$MSD+10f-TA0 z-G$*l2rk&Wd@@jkv%n*=7)X17vD?XPJD~9!JY5_^GVZ;-X`e0PDADjS{@mrm3P&2e z4lEI9>T0TE@a<|y-REjIt#$qZwWVTZ%eD%+ZU_+Io;u-&`4hdPK01^3s?MIf`{sno z1WAj&o8M>7ocles&FNu{aq!36Z-10b{QmK$e|^t^s&^j8H&hBWI=9{E%k`_8(f!u& z70b4dBKAhyXOfk-^|G`X{>Y!n%9p%y$@L}E^@3Q6f?0}+pRxYp{a-KG%<|~>kJgJO ztm_h4xBDs9P0_FDn}1nI;sK|eI>$VNX7}GS4~E`3uA0NSd5TMdSh)~u{L$1qN42JH zY&O?qttt!&x_o@m1{3*5U9W`pZ#|&$;<4bhg2S5TZF88IZ4Nli_A7ec=yrN(H`7{8 zrk$EhxPg{7XTLolqYO#AXv%srt;nD-~ zkG0RbsWo=Ijdcwyb&U){jEt;I z46IDebq&m|3=H9nO2Eg!+FMa%s>s2ARB`7(@M${i&7aJQ}UBi6+Ckj a(^G>|6H_V+Po{!W8iS{+pUXO@geCy2ogaDt literal 0 HcmV?d00001 diff --git a/res/drawable-hdpi/ic_root_folder_am.png b/res/drawable-hdpi/ic_root_folder_am.png new file mode 100644 index 0000000000000000000000000000000000000000..915e11826ea7b82c27d2c7b02574067c3f656ae8 GIT binary patch literal 508 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDA1|-9oezpTCmUKs7M+SzC{oH>NS%G}U;vjb? zhIQv;UIIA^$sR$z3=CCj3=9n|3=F@3LJcn%7)pVryh>nTu$sZZAYL$MSD+10f-TA0 z-G$*l2rk&Wd@@jkv%n*=7)X17vD?XPJ0RnXr;B4q#=W;U_Uo}aN*sH5+%iLCi^(E) z#dQu3-C~=)3wX6UoxX5=RG(Aab@lwIyl32%^UKWQKb<}&V(bD0bJrgG#dogIBI%k` z|BmCU!Vi4w`05?gGv|BD?D-S)#Ej2dA2R(`&AR2^fqdP9w)8s>s~_#r-y^v#eLBO9 zqoRJk_T2nCj#i&%xN-O-PjQ^-wx4&>7wl#U@pjmXM%c?6JoEaQxg#R{M@H?1svA*{ zB-mXU_1nystz0iH2n7Exv89zs_y_OTa0dEIwZt`|BqgyV)hf9t6-Y4{85kPt8d&NY z8H5-aS(zAEnVRbwm|Gbb?28fGkD?(rKP5A*61Rr)jO& gC#5QQ<|d}62BjvZR2H601;qk`r>mdKI;Vst0GsEof&c&j literal 0 HcmV?d00001 diff --git a/res/drawable-mdpi/ic_doc_album.png b/res/drawable-mdpi/ic_doc_album.png new file mode 100644 index 0000000000000000000000000000000000000000..318dd5bd3a09fd65b8375cc8749203497fbe8a73 GIT binary patch literal 1040 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdzmUKs7M+SzC{oH>NS%G}U;vjb? zhIQv;UV>C6dj$D1FjT2AFf_CjA5L~c#`DCC7XMsm#F_88EW4Dvpb_@(m4?JBQLn02poqjf3*ioW={$1a#zMikl zeuy&bhVpP6yWns{Y0J^s%N3l~&i|tHPx5p4mj}Ksw%3}KSPweqx~yFxm=jX8^5Ugs z7r63%2~PgFL3r&;wVTU)ZC~)WZP;x5{`a2u=k^#k*2hL2EwSye@QSu(e1AN#ejyhqt#uj`7Pzg|C3 zo^b2+SGg`1r6Z3EeJ;CfJ{=$7bu&~)EPO+`_v*ucLZ8Nj6$kJ;v>kq!5+5I*uOafv zq~}yiXlcwflW$3DSM6%esHpg%{ei=x|8w7pWtI;bPdSBN)jjIO!D+)Rm!z*@K8y8T z()>Qtr>_izoJ1OqAJBa>MT}v|lofBor?J|w=Ox9zPO-hc?me?p$0C78ydO9%dSVN{ zd1>0-uzqGdAuLe*&aJywT3zmz=qRYRcz9~^#$GpF@IvjDF0;h}5$U<{+zVuPxO`ss z)Ra-@s*`U)+_gu)9{l?izxn?!POZQjS6`j*ivlKk)e_f;l9a@fRIB8oR3OD*WMF8l zYhbBsWDsIxWMyJtWooW#U~Xk#urEezKZ=Ij{FKbJO57UGGp=I>YLEok5S*V@Ql40p l%HWuipOmWLnVXoN8kCxtQdxL16_hg>JYD@<);T3K0RSB&sD}Um literal 0 HcmV?d00001 diff --git a/res/drawable-mdpi/ic_doc_audio_am.png b/res/drawable-mdpi/ic_doc_audio_am.png new file mode 100644 index 0000000000000000000000000000000000000000..cb94d991fe7973d835c38014864c47b99bc7a268 GIT binary patch literal 858 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdzmUKs7M+SzC{oH>NS%G}U;vjb? zhIQv;UV>C6dj$D1FjT2AFf_CjA5L~c#`DCC7XMsm#F_88EW4Dvpb_@(mTAnVBArXh)Uf-WB;wZxY;e7157p{HY ze5xLc8WR@xDlF=q+7$6iJtFc4dt^j(WVg~1fm|JtoGk*JEI~hvC4_y8rpM?!b2U32 z*Z1aG$OV0#-PXU;?tS0;eeTW3f2AQt-$P9vS^1P~6bj#ZrkgEqv1JO==^et?V_8;7 zKL6}oWG8J`m%4LWvPu7LXQcvdk2hVv`WJ;Iy)pDO_g*w_|KtNEc}X(s3;E|N35#kT zl*nW0d~VSbc9G}JbO+Jtg<{zijpr@qC0lDwed)kC=TKJ zrkY&fw|=5Eu{ATtJ*;d~p!Aaj{gMmsKCkOOdZt#I+wn($i+xwG5zDnDrSsZZ_ndLr z)nVzmLfUX!-_^Y`JW;HnnewMxanQGW(75HN$sy0x{Eg}r zW*LY63f(xSojF~4;Rk3Pt~0?i7(7e9C)cPOeU9dw zFzrrQ=f_&kGhWNDCnjv$uI#-)yY}(y$~N|nrypAPKe+zJzK%&UrZD%!_0Ok)$w#%s zHKHUXu_VKYk@7#Ufa7+9H_>l&C_85rz~5!;WVAvZrIGp!Q0 zhVzW;n1LE3K{f>ErNS%G}U;vjb? zhIQv;UV>C6dj$D1FjT2AFf_CjA5L~c#`DCC7XMsm#F_88EW4Dvpc0l8OJY5_^A`ZX3zTb=4QQ-JTe;*we=ReI; zn(_La>7l|@S^d_nTLKK z+<5%$owMcXb< z^?Af7zT;^2at8ZM0qGfsBP42T8~s-MUR63*xc=;{mt}IBXMOvwc3|m+`mWbuZuNoe zTr;w+-~8_M<*vw{*MaNW^Z!ac5Hh!As(8b)KxUoGRjvgqzI~t7vMFVdQ&MBb@0M$L`Bme*a literal 0 HcmV?d00001 diff --git a/res/drawable-mdpi/ic_doc_video_am.png b/res/drawable-mdpi/ic_doc_video_am.png new file mode 100644 index 0000000000000000000000000000000000000000..3a5b798e11cb73c573a72a730d37ec0ec5810bb2 GIT binary patch literal 609 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdzmUKs7M+SzC{oH>NS%G}U;vjb? zhIQv;UV>C6dj$D1FjT2AFf_CjA5L~c#`DCC7XMsm#F_88EW4Dvpc0l6|JzX3_A`ZX3eo>nxP~`YW{$*2gW-E0r z(fz}DO8&vo{fhkmr1iVl`~OMF?aB6@6zY}j-4e@RoauJ^*6y+>!~MJFX1>cjSAK3z z@%xy6yN?-Nf4qVvddaN}R_&8MAsgDW4l?-4u*_zbIM1?PTx5?}QcarW%SR!{105N5 zGb(+*rX0#?P}J~b_D{((?hSU2h1MTtm~oU(?5X&gxU7WuT^9~a+45?Ap*;77mZ=>N zZa!CyI4X9npl5SLL+6PH^0SVanK`ljQj%LHwxRQ6-5mFOtf~%z4BIbt)&J6TQ16Mb zec*DdO1$Fr(>trVrFI;?!yuqq}P+r5>=gM_l{AylRSnE%)-~v<1zp4Y)4P zf72wS;B~iagWBI}U8k+<%{MXRzD!(r>uh01R$IgmR`<<8@7LQIos_Kj%>fKW)e_f; zl9a@fRIB8oR3OD*WMF8lYhbBsWDsIxWMyJtWooW#U~Xk#urEezKZ=Ij{FKbJO57UG zGp=I>YLEok5S*V@Ql40p%HWuipOmWLnVXoN8kCxtQdxL16%^GBp00i_>zopr0Bq*s A4FCWD literal 0 HcmV?d00001 diff --git a/res/drawable-mdpi/ic_root_folder_am.png b/res/drawable-mdpi/ic_root_folder_am.png new file mode 100644 index 0000000000000000000000000000000000000000..4352d08d9b1ba70d71423e5ca412a2dfa622efe8 GIT binary patch literal 442 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdzmUKs7M+SzC{oH>NS%G}U;vjb? zhIQv;UV>C6dj$D1FjT2AFf_CjA5L~c#`DCC7XMsm#F_88EW4Dvpc0fj#r;B4q#NoGB*K#=}@-#er-tkc4Y+3%H zoNs)4oK~AJiZJOus3F0VWO?!DZ`r;FaT3kF8_P3QPVNt8{VLVGp#12{lku1NUkUp( z-(%%ob4z4}VU2f_M>RX%}>cptHiD0JmWfMpaw~h4Z-`0hjVS;C literal 0 HcmV?d00001 diff --git a/res/drawable-xhdpi/ic_doc_album.png b/res/drawable-xhdpi/ic_doc_album.png new file mode 100644 index 0000000000000000000000000000000000000000..e67aa8d132db9dcd0a149213d610312fb4902691 GIT binary patch literal 1790 zcmZ`)c{tPy7yiwUv2S<8P?TXLTMgNb8vEE8HwG!gj8KEd$Wm$M-uTdEvSdxBFC$B7 zB>Gw~xHM5&3fVH`PO``Ntm#hozweLlInR6E=bZDr&-vq==bQ|0PiI-F{Zaq`$hu%1 za6-oXgoK#T*F;|YBqY&uwjQ zuq{l{W&t1`1psp)0AN)F0Pxt`&wbFsf>@}Vvjgzsr!kxF=Ls{CvDkn(A!Gl6)9dpm z008>V#liO1#L>ml?_Q;+_PsjkHOah(Q3sDg !6@|4(aMI$Nw#qMEmP&eE@oaFBv zDk;)FZnVd93$1)tc)@6n_w+fXr#c9KLjecknB<)U(TOnD3$nvHzL8*ygss;V! z%ChCgoy$vxAAFqE;}=3zpxsw6z7L^Pg-DJ1t@1md>^40i%CPbGO{L8~ImiiKb)eg# z#%f?g?GSEo{~gVFZCWq)vpvJo6SVPExao9dHszt|;|zFHEqgwg>4|v=tuoCl6VY2= zN^5C3F|Son?(UBm1fJc zW>#!6Pv5n{vIqR^#*plY62ATSahU}zuQ%+brY?cNWVkLkj6_PkU{V7v&eSIKYydqxM^gJ^O*zq-~a zSRZ|1HM8?7&kfnqTfB@2He=UCXX#@osF;!Jn0+pJN zMNZ3$f;#kcTzBo*kIIw!G@qTi$x35p(uD68x zqU!Ud03I6`MF|h*FKw-Tu?@|%C7%7|38KU1&*Z4ba4h2djt^0=l8C0p#~Y#1?iOm5 z_4P()hjb*=8Vt@K$-&M{2OWb2jurQN5F?v|YQVo>A(}>;2#wF@ zFAfApcem1Wfx`;sRgw^(RyfnVsaT7BSxyH=$Hu-T)?DJ5*k_b#=t#0X%TL%0O-xLD zSx=Vt-Tai3hj%O(NVF`o$c4>+{hGvEPj0=RydgfoQ6dU@td3l~4qUxpDtiU`;1qr< zo(D%p=#6ZsYh&`*a(_T3y`R;Z%yW~bhAkYP+!NPwtwv54mW%Z4BiwOZ*oebw22^-u zF20x(jey~>*-Ki;od#BMU_ql%>r;~HOvNU+0yW;UOv_Zu)?*D|6EDlTP~K>js#)JF zuxO_PB)t?=FW5THk1PTeTCB}r3G+fApb0i#z WKuo&$n)LGz0WOZ74s~`Rzx@pldmjt{ literal 0 HcmV?d00001 diff --git a/res/drawable-xhdpi/ic_doc_audio_am.png b/res/drawable-xhdpi/ic_doc_audio_am.png new file mode 100644 index 0000000000000000000000000000000000000000..2e66f03727417e467d4b291b0570dbe265964a74 GIT binary patch literal 1596 zcmZ`(dsNZ~6#nrL!B>&ygLG&FxlH{5l8(%PAn-+KF4H^1`EMc=#g{)P#?FQPqeaV$bo1!18C}VAGZk4y`1Ps0LUQ# zfUF1rW-TMxp8#+W1b~+b06?t(02fJRYgDjhfk+BxGl7pwRoz~%v`kPEPTT#J( zRU{ojZEe`{HAXKs?We(7_L`je8-rEY8F&zAR=h{DjN3P|S9^*&Ht! z+)e0?l1+L)HC#LF1KlCV7W+nR2Hy}se1ab4x`9w7yTnzUs<7t5vfFOj&!b}2%4K;v zYn@NlWE-r~D&Oi%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r?;eS)SiMOF-f?SUWTLi5UXwUa7!B z00|_LeZkLsNni|#L=6C`lt5oFkP3n~cRP3d#~>2(Q{i1OBc3_lQX_b klnMYkUz{ZH3>77&2%-gv{OtXA1WPFngtEBICPqTRKYY`x#Q*>R literal 0 HcmV?d00001 diff --git a/res/drawable-xhdpi/ic_doc_image.png b/res/drawable-xhdpi/ic_doc_image.png new file mode 100644 index 0000000000000000000000000000000000000000..98d3f7954123c0441efb6be151aad5eb0205df3b GIT binary patch literal 936 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7TyC=Ea{HEjtmSN`?>!lvI6;x#X;^) z4C~IxyaaL-l0AZa85pY67#JE_7#My5g&JNkFq9fFFuY1&V6d9Oz#v{QXIG#NP=YPV z+ueoXKL{?^yL>WGgtNdSvKUBvfU(=jY&!-9rV39N$B>F!Z*O~N3kQlE_!ytOb&}B1 zZM!BWWeP^cX4F2|_8@uX4grxrEOiR|o4mt=1jMzvG&I)5iZ~u^4O&t5cy(#va)E^_ zCud%oZ1SD|@Bx*{me1|K&#N}(H=5~_)*zX+ac`U3#(TVL9#(Js*Zxq<+N6M;eX;U; z0qq^pYrHvEh@R|sb-(ABwbYzX=&$a`h+WNqi0-HTFhc5B8Q(-QkA`ubw$yOstky#z-0 zCAR~9e`J`yNciot2C2SBO3%8Nm~T7(nBm=H+kYCGQ-_ zVeh+c%+zMkxO#``*WYX38T&m{JC_t+a_MZyOQ!0Am|bs8v_43W}|sx4=k93-3hK=j^2_bm-QO?VsGrskR(74teG404X&-9vQ0#|e@dBO{V zvTXC0F1OpJs^rD6vTTmFijHWfub1-4u>N;GURzW6`nzlEzb-D+7alF=G2sH00)| zWTsW()^MJ29WzjaB*=!~{Irtt#G+IN$CUh}R0Yr6#Prml)Wnp^!jq|>9K+!0>gTe~ HDWM4fV<2?? literal 0 HcmV?d00001 diff --git a/res/drawable-xhdpi/ic_doc_video_am.png b/res/drawable-xhdpi/ic_doc_video_am.png new file mode 100644 index 0000000000000000000000000000000000000000..1a8e632c288803ff7fc81692df77bfb7258f28da GIT binary patch literal 838 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7TyC=Ea{HEjtmSN`?>!lvI6;x#X;^) z4C~IxyaaL-l0AZa85pY67#JE_7#My5g&JNkFq9fFFuY1&V6d9Oz#v{QXIG#NP=YPV z+ueoXKL{?^yL>WGgtNdSvKUBvfU(=jY&!-9CNWPJ$B>F!Z*QN@5^&iAAKfLxCk^Q^D)r3dehm(I;7Vl&CA|9hoY4kww(C`GKXd_|>LH$=u%tQ_KF9 zU%p@*`}u10)mZjroJ|Td5|+8md7rq>;vYZHhm98R64H*a7VqeE-Z|O)h+3ZL@gSxu z*Qd{m)$=FBy_`Jxh|kIQcaKKB+wlJc(>in21YZ84>nnKG{)urg?qq(V#`1)3!fb&F z)(&}24(}Lt&a7ZeU4H2B4ehhr{S*DYf8Kj&x9^=9)Ye8FS4s%X`Wf@3Ff6O(@+IAfmEvKd7p6aFw9?-Cjq6-u z{avQlHY~?aiu5H&PA?2`=Di@w*u6us*XpwA>06HB&luI0th=A_bhpZawTat|nWB_Y zou*pZeEmk=t_SPRu*g5QUH3?dFDoPO!c;kf1Kw*Mnaz6;EzBDJmht}5cQcl@TJ=>6bd1|5o zOG|@*0F#pg2M43#g2GehSj3Ci*E*~`lgj$%Yy9UO_QmvAUQh^kMk%6JHu7RblkwJ)&k(G&om8rR| zfw`4|!M+%={U{o8^HVa@DsgK#&$x~ms6i5BLvVgtNqJ&XDuZK6ep0G}XKrG8YEWuo VN@d~6R8V?m@O1TaS?83{1OU#AL1X{` literal 0 HcmV?d00001 diff --git a/res/drawable-xhdpi/ic_root_folder_am.png b/res/drawable-xhdpi/ic_root_folder_am.png new file mode 100644 index 0000000000000000000000000000000000000000..c916e0be7687f729aeacbf0a69bf4d0f2484a687 GIT binary patch literal 582 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7TyC=Ea{HEjtmSN`?>!lvI6;x#X;^) z4C~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Jg3Amp$FN%9hr(%zUf6TEjnxxl7 z{i&7iM*8kMJ6KtN&xpqh)3Foqts_m47G#S*vb1%kAb{@O$*vDOg1kRsCx9mH;~ayp z^BP3IJ|4>md-gH0^q_yl)7y$-4<^9 z7S&cVj%T~(9VP8f0O8dX!Ol9%-cUaoT9mw8@Gts}g^mGQjR3+cVrjauQgt%(Q;V>ViOA5(XToG+-g4{% z*Q)XkEpP$>IpPCHlzfNs+iQEpc(d$wkq97f=p|u(J)DBCr&(ltP(+9rUQ3~b*z>}j z<)l616A%y%fiCQ<0j&sP`ioiQ;XEsres62GnQmi|2@q;8m=tXU{MAGd z00ICI00ICIP)uZTL-EhupaCEN00AHX$beFkB$x$g00;m;00;m;00;m;00;n@i2nr` Y0Nm~TMkPan(EtDd07*qoM6N<$f<^(_WB>pF literal 0 HcmV?d00001 diff --git a/res/drawable-xxhdpi/ic_doc_image.png b/res/drawable-xxhdpi/ic_doc_image.png new file mode 100644 index 0000000000000000000000000000000000000000..06d8d9c5614d1da5e28544de10fd25977e013cd5 GIT binary patch literal 713 zcmeAS@N?(olHy`uVBq!ia0vp^2_VeD1|%QND7OGok|nMYCBgY=CFO}lsSJ)O`AMk? zp1FzXsX?iUDV2pMQ*9U+n6f=x978H@y_sw6EfXlwCL61-k{!a);TXO_aIs4eYqPn~ zcGDZGtx8H9S;|dLQzlHP7r4YRZPDDOMO$4@-1nGx%TJfZxRSpvS|cv4JWY0PrCddK zYW|zbbC&mi`fZ-~{CacQ$x z^QLuk0$UD0PW!fDlTgA3?k`&0USf<7E0&$noqpSCOvn;Cr1?MtP;PtGGhNA7D0Q=6UE zKj>S@t}4eCr&amd*>7s>(}0hYl@{D_z03QEJ^Mz}H?DW)`vTo^o{3j1s@W2{b>$z= z+o3KJO<%a)aagC^ewcgP_Z-(>{Zw~LM~A|_ht6v^U(1cImSF+m`O<;JBt;)BR(+#m4z-9o|PCtlJVU*k7u; zdt>GDnypIj6cyxRHqPHvb-AhG$BU4#wRQ>$$JXk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doBuv2ybqdtqlN#;yqdK9^Yxrr z1zP8ue%)mc_1piGJ>yUK$0McZED?c=2r7^h9cE@eW0tJD(<=#f?*dLAnd3c7#>mQ_ doS4qQ%*?y}vd$@?2>|R@{V@Ol literal 0 HcmV?d00001 diff --git a/res/drawable-xxhdpi/ic_root_folder_am.png b/res/drawable-xxhdpi/ic_root_folder_am.png new file mode 100644 index 0000000000000000000000000000000000000000..077c851cee28e72fb5740303bd85445959badf1c GIT binary patch literal 1263 zcmbVMU1-!;6uxfVT7@pIvao7}kUr=_Cz+d>#3nS_Op?)IcWRwZ-N6@|Np3r#lOL1Y z&a_sj3cA9+N(Dh&VIM?TEfrr>x(mCCAc(Mts4OT8T}4>1;vWj$w4GXT@WGJe-h1+$ z^L_W+b8@V^YkTvm^{W5?&6yoqj*NZL)6_`bk4{wD$*>OV1>EEH#L|_?-&hG&uCZP933=8i{7@C>ZnR2fP=6>Rh_aMN>!Pjiz|_NWM*k<4uS_| zdR|l^+fAunfGD0x#LPH^lpruL$qNE(qqsQa*f_a`7)(mMAaPr$g^MO^fz>bNwDbZO zS;=$>V_#y~N~OY75{wrNuuv4mC}9MQ;ep zG*LRg1;@{37X!QDLZV2@*s9^PkcqR76YXmb9pW7NAfqli%#Zkp&7sg63QTey{jD`; zlDkh6ML?oP+8Nm7P>izXnL`e8aYmDA@`bT%OG+t_hpMP?NiHt5L)gx7imr;Hz$a5W z$1AlM^?VgkfhHIi4uT6M~Zz7`jq_3m~ z$iQBZ_q=kg0=i2c_QI0qQ)-VuZO$5|?M8<0q63=WuZ9A97+LASbEvrtOLiRvgjyHV zsYF8OVEvuX`&yrqHI|5Bqw-i%E;SRW!DzZz{A97%KFB3K6OiV(SuP#`VA;lursS*l zo<4wI{n6KQ&2S2B!(Dw3n||K?^|@~!{CT$J_kSB3kG1~P@b}&#e|&83{h5g?kME4V zS-n>8?UjE$M|yJ{fYkte0XhL_A`t-v!1BoWYV`1#!e8j!(J8rj{cd7rMd9V^7s literal 0 HcmV?d00001 diff --git a/src/com/github/nutomic/controldlna/utility/FileArrayAdapter.java b/src/com/github/nutomic/controldlna/utility/FileArrayAdapter.java index 223b684..53991a6 100644 --- a/src/com/github/nutomic/controldlna/utility/FileArrayAdapter.java +++ b/src/com/github/nutomic/controldlna/utility/FileArrayAdapter.java @@ -27,10 +27,15 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. package com.github.nutomic.controldlna.utility; -import java.util.List; +import java.net.URI; +import java.util.List; import org.teleal.cling.support.model.DIDLObject; +import org.teleal.cling.support.model.item.AudioItem; +import org.teleal.cling.support.model.item.ImageItem; import org.teleal.cling.support.model.item.Item; +import org.teleal.cling.support.model.item.PlaylistItem; +import org.teleal.cling.support.model.item.VideoItem; import org.teleal.cling.support.model.item.MusicTrack; import android.content.Context; @@ -39,12 +44,13 @@ import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.TextView; +import android.util.Log; import com.github.nutomic.controldlna.R; /** * ArrayAdapter specialization for UPNP server directory contents. - * + * * @author Felix Ableitner * */ @@ -68,7 +74,6 @@ public class FileArrayAdapter extends ArrayAdapter { TextView title = (TextView) convertView.findViewById(R.id.title); TextView artist = (TextView) convertView.findViewById(R.id.subtitle); artist.setText(""); - RemoteImageView image = (RemoteImageView) convertView.findViewById(R.id.image); if (item instanceof MusicTrack) { MusicTrack track = (MusicTrack) item; String trackNumber = (track.getOriginalTrackNumber() != null) @@ -81,8 +86,27 @@ public class FileArrayAdapter extends ArrayAdapter { else title.setText(item.getTitle()); - image.setImageUri(item.getFirstPropertyValue( - DIDLObject.Property.UPNP.ALBUM_ART_URI.class)); + RemoteImageView image = (RemoteImageView) convertView.findViewById(R.id.image); + URI icon = item.getFirstPropertyValue( + DIDLObject.Property.UPNP.ALBUM_ART_URI.class); + if (icon != null) { + image.setImageUri(icon); + } + else { + int resId; + if (item instanceof AudioItem) + resId = R.drawable.ic_doc_audio_am; + else if (item instanceof VideoItem) + resId = R.drawable.ic_doc_video_am; + else if (item instanceof ImageItem) + resId = R.drawable.ic_doc_image; + else if (item instanceof PlaylistItem) + resId = R.drawable.ic_doc_album; + else + resId = R.drawable.ic_root_folder_am; + image.setImageResource(resId); + } + return convertView; } diff --git a/src/com/github/nutomic/controldlna/utility/RemoteImageView.java b/src/com/github/nutomic/controldlna/utility/RemoteImageView.java index 7313bad..027b82a 100644 --- a/src/com/github/nutomic/controldlna/utility/RemoteImageView.java +++ b/src/com/github/nutomic/controldlna/utility/RemoteImageView.java @@ -54,8 +54,6 @@ public class RemoteImageView extends ImageView { protected void onPostExecute(Bitmap bm) { if (bm != null) setImageBitmap(bm); - else - setImageDrawable(null); } };