mirror of
https://github.com/pierre42100/ComunicAndroid
synced 2024-11-23 22:09:30 +00:00
Fix potential size issue
This commit is contained in:
parent
33e301fb22
commit
ac96c8f4d0
@ -71,7 +71,8 @@ public class ConversationsListAdapter extends ArrayAdapter<ConversationsInfo> {
|
|||||||
|
|
||||||
//Set drawable associated with TextView (if required = unread conversation)
|
//Set drawable associated with TextView (if required = unread conversation)
|
||||||
Drawable drawable = UiUtils.getDrawable(getContext(), R.drawable.ic_circle);
|
Drawable drawable = UiUtils.getDrawable(getContext(), R.drawable.ic_circle);
|
||||||
drawable.setBounds(0, 0, 16, 16);
|
drawable.setBounds(0, 0, UiUtils.GetPixel(getContext(), 10),
|
||||||
|
UiUtils.GetPixel(getContext(), 10));
|
||||||
conversationName.setCompoundDrawables(
|
conversationName.setCompoundDrawables(
|
||||||
infos.hasSaw_last_message() ? null :
|
infos.hasSaw_last_message() ? null :
|
||||||
drawable,
|
drawable,
|
||||||
|
Loading…
Reference in New Issue
Block a user