aboutsummaryrefslogtreecommitdiff
path: root/src/github
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-07-25 16:13:25 -0700
committerScott Jackson <daneren2005@gmail.com>2014-07-25 16:13:25 -0700
commitd6133d2437403a45221b5953907779cb2e7df594 (patch)
tree04664fcc9ce9476b4d49fb23f77b798295af4f8d /src/github
parent204c8f72b4ab12b5e29200c558f37bcaa250d325 (diff)
downloaddsub-d6133d2437403a45221b5953907779cb2e7df594.tar.gz
dsub-d6133d2437403a45221b5953907779cb2e7df594.tar.bz2
dsub-d6133d2437403a45221b5953907779cb2e7df594.zip
Add ability to have views which are not updated
Diffstat (limited to 'src/github')
-rw-r--r--src/github/daneren2005/dsub/view/UpdateView.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/view/UpdateView.java b/src/github/daneren2005/dsub/view/UpdateView.java
index 5278f83a..88cdce19 100644
--- a/src/github/daneren2005/dsub/view/UpdateView.java
+++ b/src/github/daneren2005/dsub/view/UpdateView.java
@@ -54,15 +54,23 @@ public class UpdateView extends LinearLayout {
protected boolean starred = false;
protected boolean isStarred = false;
+ protected final boolean autoUpdate;
+
public UpdateView(Context context) {
+ UpdateView(context, true);
+ }
+ public UpdateView(Context context, boolean autoUpdate) {
super(context);
this.context = context;
+ this.autoUpdate = autoUpdate;
setLayoutParams(new AbsListView.LayoutParams(
ViewGroup.LayoutParams.FILL_PARENT,
ViewGroup.LayoutParams.WRAP_CONTENT));
- INSTANCES.put(this, null);
+ if(autoUpdate) {
+ INSTANCES.put(this, null);
+ }
startUpdater();
}