From ac96c8f4d091899fff40872070a247e08f8a547c Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Thu, 23 Aug 2018 11:03:54 +0200 Subject: [PATCH] Fix potential size issue --- .../comunic/client/ui/adapters/ConversationsListAdapter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/communiquons/android/comunic/client/ui/adapters/ConversationsListAdapter.java b/app/src/main/java/org/communiquons/android/comunic/client/ui/adapters/ConversationsListAdapter.java index d9f5580..ca82817 100644 --- a/app/src/main/java/org/communiquons/android/comunic/client/ui/adapters/ConversationsListAdapter.java +++ b/app/src/main/java/org/communiquons/android/comunic/client/ui/adapters/ConversationsListAdapter.java @@ -71,7 +71,8 @@ public class ConversationsListAdapter extends ArrayAdapter { //Set drawable associated with TextView (if required = unread conversation) 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( infos.hasSaw_last_message() ? null : drawable,