aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-12-13 22:59:08 -0800
committerScott Jackson <daneren2005@gmail.com>2013-12-13 22:59:08 -0800
commit01b4bfcfd95153008f35de720b46bbf22ef06cbb (patch)
tree4bbffca8261f5a57801e63551427f53687dff4ff
parentb6963f3953451f180f58cbb28b0ec320fe3cd386 (diff)
downloaddsub-01b4bfcfd95153008f35de720b46bbf22ef06cbb.tar.gz
dsub-01b4bfcfd95153008f35de720b46bbf22ef06cbb.tar.bz2
dsub-01b4bfcfd95153008f35de720b46bbf22ef06cbb.zip
Don't run through all handlers if nothing to update
-rw-r--r--src/github/daneren2005/dsub/view/UpdateView.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/view/UpdateView.java b/src/github/daneren2005/dsub/view/UpdateView.java
index f247137d..1b4e55d8 100644
--- a/src/github/daneren2005/dsub/view/UpdateView.java
+++ b/src/github/daneren2005/dsub/view/UpdateView.java
@@ -130,7 +130,11 @@ public class UpdateView extends LinearLayout {
views.add(view);
}
}
- updateAllLive(views);
+ if(views.size() > 0) {
+ updateAllLive(views);
+ } else {
+ uiHandler.postDelayed(updateRunnable, 2000L);
+ }
} catch (Throwable x) {
Log.w(TAG, "Error when updating song views.", x);
}