aboutsummaryrefslogtreecommitdiff
path: root/src/github
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-08-29 05:23:39 -0700
committerScott Jackson <daneren2005@gmail.com>2013-08-29 05:23:39 -0700
commit8e5f50e4fef9e2a3d14f6a4894b87cbf8f41e262 (patch)
treee5273c58ba217de95ba21c3098ece50c20d187cd /src/github
parent054f83744088381f99765bf2957ddbed19d8e61f (diff)
downloaddsub-8e5f50e4fef9e2a3d14f6a4894b87cbf8f41e262.tar.gz
dsub-8e5f50e4fef9e2a3d14f6a4894b87cbf8f41e262.tar.bz2
dsub-8e5f50e4fef9e2a3d14f6a4894b87cbf8f41e262.zip
UpdateView.setObject use handlers for background update
Diffstat (limited to 'src/github')
-rw-r--r--src/github/daneren2005/dsub/view/UpdateView.java14
1 files changed, 12 insertions, 2 deletions
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) {