aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-10-03 14:50:42 -0700
committerScott Jackson <daneren2005@gmail.com>2014-10-03 14:50:42 -0700
commitcecd46ae801d86d8251b5ed04df63a34c9dd660a (patch)
tree43a1dcfb433dc5229834ffc152dc7dca916f66cb /src
parent7069ab8ab78a48e60fa4a95ccc325eb7e56fa1be (diff)
downloaddsub-cecd46ae801d86d8251b5ed04df63a34c9dd660a.tar.gz
dsub-cecd46ae801d86d8251b5ed04df63a34c9dd660a.tar.bz2
dsub-cecd46ae801d86d8251b5ed04df63a34c9dd660a.zip
Only trigger UpdateView update when actually resuming fragment
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/fragments/SubsonicFragment.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/fragments/SubsonicFragment.java b/src/github/daneren2005/dsub/fragments/SubsonicFragment.java
index 66900b55..f2f81073 100644
--- a/src/github/daneren2005/dsub/fragments/SubsonicFragment.java
+++ b/src/github/daneren2005/dsub/fragments/SubsonicFragment.java
@@ -110,6 +110,7 @@ public class SubsonicFragment extends Fragment implements SwipeRefreshLayout.OnR
protected boolean artist = false;
protected boolean artistOverride = false;
protected SwipeRefreshLayout refreshLayout;
+ protected boolean firstRun;
public SubsonicFragment() {
super();
@@ -126,6 +127,7 @@ public class SubsonicFragment extends Fragment implements SwipeRefreshLayout.OnR
title = name;
}
}
+ firstRun = true;
}
@Override
@@ -137,7 +139,11 @@ public class SubsonicFragment extends Fragment implements SwipeRefreshLayout.OnR
@Override
public void onResume() {
super.onResume();
- UpdateView.triggerUpdate();
+ if(firstRun) {
+ firstRun = false;
+ } else {
+ UpdateView.triggerUpdate();
+ }
}
@Override