From c2af2ef812b66f765a21434f6926cb21f1c85c14 Mon Sep 17 00:00:00 2001 From: iNPUTmice Date: Wed, 2 Jul 2014 10:43:36 +0200 Subject: enabled anti alising for tiles --- src/eu/siacs/conversations/utils/UIHelper.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/eu/siacs/conversations/utils/UIHelper.java b/src/eu/siacs/conversations/utils/UIHelper.java index 15bb8969..529d2b4c 100644 --- a/src/eu/siacs/conversations/utils/UIHelper.java +++ b/src/eu/siacs/conversations/utils/UIHelper.java @@ -129,6 +129,7 @@ public class UIHelper { int textColor, int left, int top, int right, int bottom) { Paint tilePaint = new Paint(), textPaint = new Paint(); tilePaint.setColor(tileColor); + textPaint.setFlags(Paint.ANTI_ALIAS_FLAG); textPaint.setColor(textColor); textPaint.setTypeface(Typeface.create("sans-serif-light", Typeface.NORMAL)); -- cgit v1.2.3 From aa1665e359f847a5ebf393c7339e09fe116e61cf Mon Sep 17 00:00:00 2001 From: iNPUTmice Date: Wed, 2 Jul 2014 17:30:53 +0200 Subject: fixed some tiny ui glitches --- res/layout/message_recieved.xml | 4 ++-- res/layout/message_sent.xml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/res/layout/message_recieved.xml b/res/layout/message_recieved.xml index 6e4577fb..3b3df9e8 100644 --- a/res/layout/message_recieved.xml +++ b/res/layout/message_recieved.xml @@ -19,7 +19,8 @@ android:layout_height="fill_parent" android:background="#ededed" android:orientation="vertical" - android:padding="5dp" > + android:gravity="center_vertical" + android:padding="3dp" > diff --git a/res/layout/message_sent.xml b/res/layout/message_sent.xml index ebba6ac5..fbc95898 100644 --- a/res/layout/message_sent.xml +++ b/res/layout/message_sent.xml @@ -19,7 +19,8 @@ android:layout_height="fill_parent" android:background="#ededed" android:orientation="vertical" - android:padding="5dp" > + android:gravity="center_vertical" + android:padding="3dp" > -- cgit v1.2.3 From e02ae4cde20eaacd006609b1545a0e5da3b9d4e3 Mon Sep 17 00:00:00 2001 From: iNPUTmice Date: Thu, 3 Jul 2014 11:32:54 +0200 Subject: fixed array out of bounds in isMuc --- src/eu/siacs/conversations/ui/ContactsActivity.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/eu/siacs/conversations/ui/ContactsActivity.java b/src/eu/siacs/conversations/ui/ContactsActivity.java index 811ae876..fee3de7a 100644 --- a/src/eu/siacs/conversations/ui/ContactsActivity.java +++ b/src/eu/siacs/conversations/ui/ContactsActivity.java @@ -485,8 +485,11 @@ public class ContactsActivity extends XmppActivity { } private boolean isMuc(Contact contact) { - String server = contact.getJid().split("@")[1]; - return getMucServers().contains(server); + String[] parts = contact.getJid().split("@"); + if (parts.length != 2) { + return false; + } + return getMucServers().contains(parts[1]); } public void startConversation(Contact contact, Account account, boolean muc) { -- cgit v1.2.3