aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();
}