From 8e5f50e4fef9e2a3d14f6a4894b87cbf8f41e262 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Thu, 29 Aug 2013 05:23:39 -0700 Subject: UpdateView.setObject use handlers for background update --- src/github/daneren2005/dsub/view/UpdateView.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/github/daneren2005/dsub/view/UpdateView.java b/src/github/daneren2005/dsub/view/UpdateView.java index c73ba72c..b80eda3c 100644 --- a/src/github/daneren2005/dsub/view/UpdateView.java +++ b/src/github/daneren2005/dsub/view/UpdateView.java @@ -73,8 +73,18 @@ public class UpdateView extends LinearLayout { } public void setObject(Object obj1, Object obj2) { setObjectImpl(obj1, obj2); - updateBackground(); - update(); + backgroundHandler.post(new Runnable() { + @Override + public void run() { + updateBackground(); + uiHandler.post(new Runnable() { + @Override + public void run() { + update(); + } + }); + } + }); } protected void setObjectImpl(Object obj) { -- cgit v1.2.3 From aa548fcd3a40a5c9cd38da86fb289b98f1977a6d Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Thu, 29 Aug 2013 05:28:41 -0700 Subject: Get rid of brief star by just having it off by default --- res/layout/album_list_item.xml | 3 ++- res/layout/artist_list_item.xml | 3 ++- res/layout/song_list_item.xml | 3 ++- src/github/daneren2005/dsub/view/UpdateView.java | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/res/layout/album_list_item.xml b/res/layout/album_list_item.xml index 0b84b4f3..ee710539 100644 --- a/res/layout/album_list_item.xml +++ b/res/layout/album_list_item.xml @@ -46,7 +46,8 @@ android:layout_gravity="right|center_vertical" android:src="@drawable/ic_stat_star" android:background="@android:color/transparent" - android:focusable="false"/> + android:focusable="false" + android:visibility="gone"/> + android:focusable="false" + android:visibility="gone"/> + android:focusable="false" + android:visibility="gone"/>