From 3a7f1249dc04b81cf3e83e91e828f38767546df8 Mon Sep 17 00:00:00 2001 From: cketti Date: Fri, 8 Feb 2013 17:47:22 +0100 Subject: [PATCH] Fix some display issues --- res/drawable-hdpi/ic_contact_picture.png | Bin 1487 -> 1941 bytes res/drawable-ldpi/ic_contact_picture.png | Bin 0 -> 815 bytes res/drawable-mdpi/ic_contact_picture.png | Bin 0 -> 1126 bytes res/drawable-xhdpi/ic_contact_picture.png | Bin 0 -> 2666 bytes res/layout/message_list_item.xml | 4 ---- .../fsck/k9/fragment/MessageListFragment.java | 6 ++++++ 6 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 res/drawable-ldpi/ic_contact_picture.png create mode 100644 res/drawable-mdpi/ic_contact_picture.png create mode 100644 res/drawable-xhdpi/ic_contact_picture.png diff --git a/res/drawable-hdpi/ic_contact_picture.png b/res/drawable-hdpi/ic_contact_picture.png index 7c34f5c94bced4278508f594ef898b7ff6cf8b68..bf93c17e04214dff8bbc6d739704c7feb7af878d 100644 GIT binary patch literal 1941 zcmV;G2Wt3N2bPDNB8 zb~7$DE-^4L^m3s900$9CL_t(&L+#q>cGN}?1>kxAM+$2qr>CcvmzOVI zym<8J(Zh!i4I3+d`}30llbQ%h;@#cdr%#_A92^`S9r3-hvor1okL%Cd>-_xOU$0-k ze*XNq!5;D8qF7=f6RDw zb@le`Th<%zoCAS@gad>SX`=W^u1p2qyLa#K%@}qW0u0^JtL3XGYD1M+8i1J#h`n;p zT;-l0!2DN2O?d3hn>Xm8S6pLwslpdS^r~QWHX8Z-`SZ({FNJY;)Fr#r%)5|hM8B;B z)4T7U#YlouXRrG~BK%CqX|X?Q8GsF1+QFH8qzzlYU3qR zV)H_tz>qW*7ce2$9R>_GQ}Ge2uVSNUGn1Tc#r(3-7R&3oHwz7|rWC(OsfDPbX{*M) zJxim5fmPU+y~&(RlpF&Xd(>oJG&(mmERQoIzxwj!ORoo3vl+>0t&O{B#IwCI**$Xe5pk4-Z2EABeK!5@~tuIsyJ*0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F zX=;1Qy}NN@RxLb2-4MPLeWe*cQ=(-g>@a5XS+&PN2bPDNB8 zb~7$DE-^4L^m3s900OH?L_t(oN4=J3R>Uw2gmeF^u*>$|d+&|o@PT+vkP~N%!9RG5 zV`((f$a3)Z)LN}p`F#FS)8J79IsboPnM`KAUjHpKFy6mcE|=SEHpOC*ore;0R~qr# z?RMw$`EIv6olfWT`F6YQ_xr_S!G5V!x)U`8tWYRSCKK`gk+Ap*YPnoaWtj*@u)SUn zM+zbd^?JP$78!Ox27IQ}*=#m?h=0f9vF&#>8pTFn0+L!rUE#k{smM-nJRS)jb(uqO z!l{i!>{#*@k4Y(IpIVA5PBt114tF}8A24IaAxT23)k@0Ma=DyNr=U8(__W<_Yqc7J zVnvAt#tavnARNE|cDqacO17HKrm9W|2Ag`lJ{SzBGg%%Ehp7x4ka#ntG9?Vb;11a3 za=`_0_4|EJlZU4v$+_yk5RB~6F416tXOnF3!_jBPgg{XiT9X|jrr)E=`~l+x%CSkX zLx9z46~%LRxJyN>P@%geJ;Y~p7^;yFaOV&O#JJDOW~pY;13;21GLK^2h1ATT z<%%xAM%k_WDvUo~UEKSWC%Mpo^1o5a!{wjZPrBmGzKu%(btMCegTLst#C zu&H0f!!=0*lD?KHsMPT_VqU~h<`k0Dp&g{b)uRTfXE4DgnNYMx_Md>swBj8`%~<@< z!_#9vX$G!fR0ArDAEFfh%qSbPNj)8S1H#Wg7}pB7lDZ_}2RYART$m)#zBXwL_I-lE z2Dvkg?D8|}xRHH=$(Xe#Ftp@7;tdRs$Xz`wgd$T#9wXks$X@J&6LFe1xgRh*Qh)TV tsznu1X3SIW>88db_aV!ED@c18uur!b`j^95+b{qC002ovPDHLkV1i2`Y*+vQ literal 0 HcmV?d00001 diff --git a/res/drawable-mdpi/ic_contact_picture.png b/res/drawable-mdpi/ic_contact_picture.png new file mode 100644 index 0000000000000000000000000000000000000000..eabb3436a10a924ca5dca3bf39244c34fd96096a GIT binary patch literal 1126 zcmV-s1eyDZP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D02*{fSaefwW^{L9 za%BKeVQFr3E>1;MAa*k@H7+qQF!XYv000BkNkle=bUiP zhTHJt;S;lxMjEY*-~m0Y#3&_!2{qXQm;wTZMKD@oX-QVADZ*TX4 zl?7;ZbyYe#5u_H_>x4|IIslP^5GAPbGVgD0Zc_h^w>&>TBRD0j_Q=#^leI=m8BeEG;eNkQDTO zbaYf=T3K1)kEf?6-Yj1hab(UdlkFN1TjCam4`nKx3{M*KnBYB`MHZ?7A64M zc5-q8tojCZj-hhaRN$hPTUB-$sHcF63GW-WolNL07T$uER!W2O33>9x@Z8+u~I%JSu35D)DU@6K0eEHB~i*X zEE!~SRc8v(1b;a;t{~pXK)qW2W(WZ+M%0Z_a@@he0jf~l?!LzDr>Cd(R%$HP+eB>- zK<#q5yStN9!h$iGY(5}g8SWcH&&?V7_OkrJKUJ`=} z6tDN$Aq{|}(^7oq>jRNUk_A17C37~`84b;+0gw|RjmgY33tmNnTE>j6khvWog}w?X zSe;;VqO9L!mv{t5UWOs`A;>*C&vC+J?wx-r+#@6Wk!YLx_3?*j) zVQHD6H01OgfP(ub3Zs}lu`{?s3FZ&5^c-_pO9th)-q8xhw^!D4s0uwtsOXo^Z^RZN045HGLN=a!RNS9v>f*ERlHA z`1R-yrmO;*u#^}*$D`*ow)&q#e&1LJuIDV$sei*sPK*QZ%h}#oe*PvPg@C!}Nugpx zO_~jxzXs*RH*k$osZ;5FK9oms99Ti)V{0h%7PX*Wjg1Ur1JYH(P|!%TsX^jKWr)?u zB{ln+u5^--07;PUVS+ZCq*OR6Ls-F0%ak0(=M=t<0JU&TUBDWyiU0rr07*qoM6N<$g2Jm0+yDRo literal 0 HcmV?d00001 diff --git a/res/drawable-xhdpi/ic_contact_picture.png b/res/drawable-xhdpi/ic_contact_picture.png new file mode 100644 index 0000000000000000000000000000000000000000..0c4e8abbab472d6d91e29a6a5fd7fa890b50f805 GIT binary patch literal 2666 zcmeHI`#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kn~EnZanch<1|vQ{HPad+rYvkhdw*>g$oRiSiwh@0-H#JMZW;>9~CH zK|;-_jER3F@kw1$7QtV|efqYkncuSE?df9Jp}>hVD>51ymrq@Ri_BKA=kYo5Yu=0_ z!!QT1??;AFh$h9xe#Wx+0+y5ZZopI4D~fX&s(;PDSh)>pynsq z{W=)GYF1?T!&qhalz_M<%%LdD)U*0Sd-KY6Mat5zl=O1JuiBV}+I-bI;!+xj!Es}+ zZf&T&ZI~gSp32?=`WoafeSxeb*y%MU9qGauT06Vwd%4})Q87?AmpdBy(8t6gv-`LA z$1m6+;q+0omI=xW5hgkIc!>c-_WBmD)g}>buY1Q~A;V?Z`hYrNqG$cqMeED*@^%$5 z8LQ>EEdY^U>vENQ;UDcQwJNkz0Z}HEQbr0um^6l?1nz}DfdJJOvCk2M5uo%{7-id^ zeWMG{UVs^UQ0B@eZ3krnGEI`?4uN+$7o#PPRet@6K4~00$Y<{I++Vy|xe*Pp`J5Yd zJvNLa%TUzx2vzhA%fUq>?x)84FF^UB2TE!1&&<(#2S-i=uiBGu<`hJFw50CD((+IK z2%S+_LljL1F1!VSAEP$hHB@Pz%31eWD}4RB=NhUv_X0r}HTUIU7=n>ovC{Xse2_oTF380k=<_yeo c> diff --git a/src/com/fsck/k9/fragment/MessageListFragment.java b/src/com/fsck/k9/fragment/MessageListFragment.java index 6cbca58cf..777d9f6d4 100644 --- a/src/com/fsck/k9/fragment/MessageListFragment.java +++ b/src/com/fsck/k9/fragment/MessageListFragment.java @@ -1850,6 +1850,12 @@ public class MessageListFragment extends SherlockFragment implements OnItemClick if (holder.contactBadge != null) { holder.contactBadge.assignContactFromEmail(counterpartyAddress, true); if (counterpartyAddress != null) { + /* + * At least in Android 2.2 a different background + padding is used when no + * email address is available. ListView reuses the views but QuickContactBadge + * doesn't reset the padding, so we do it ourselves. + */ + holder.contactBadge.setPadding(0, 0, 0, 0); mContactsPictureLoader.loadContactPicture(counterpartyAddress, holder.contactBadge); } else { holder.contactBadge.setImageResource(R.drawable.ic_contact_picture);