From 760632302d89f1401e820bf602470d5db8308bc1 Mon Sep 17 00:00:00 2001 From: rfc2822 Date: Sun, 7 Dec 2014 12:58:50 +0100 Subject: [PATCH] =?UTF-8?q?Fiddling=20around=20with=20UI=20again=20and=20a?= =?UTF-8?q?gain=20and=20again=20=E2=80=A6=20hoping=20for=20console-only=20?= =?UTF-8?q?mobile=20phones=20one=20day=20(fixes=20#386)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bitfire/davdroid/syncadapter/SelectCollectionsAdapter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/at/bitfire/davdroid/syncadapter/SelectCollectionsAdapter.java b/src/at/bitfire/davdroid/syncadapter/SelectCollectionsAdapter.java index f29a80be..95c871ed 100644 --- a/src/at/bitfire/davdroid/syncadapter/SelectCollectionsAdapter.java +++ b/src/at/bitfire/davdroid/syncadapter/SelectCollectionsAdapter.java @@ -103,12 +103,14 @@ public class SelectCollectionsAdapter extends BaseAdapter implements ListAdapter break; case TYPE_ADDRESS_BOOKS_ROW: v = inflater.inflate(android.R.layout.simple_list_item_single_choice, null); + v.setPadding(0, 8, 0, 8); break; case TYPE_CALENDARS_HEADING: v = inflater.inflate(R.layout.calendars_heading, parent, false); break; case TYPE_CALENDARS_ROW: v = inflater.inflate(android.R.layout.simple_list_item_multiple_choice, null); + v.setPadding(0, 8, 0, 8); } } @@ -126,7 +128,6 @@ public class SelectCollectionsAdapter extends BaseAdapter implements ListAdapter protected void setContent(CheckedTextView view, int collectionIcon, ServerInfo.ResourceInfo info) { // set layout and icons - view.setPadding(view.getPaddingLeft(), 8, view.getPaddingRight(), 8); view.setCompoundDrawablesWithIntrinsicBounds(collectionIcon, 0, info.isReadOnly() ? R.drawable.ic_read_only : 0, 0); view.setCompoundDrawablePadding(10);