aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-11-14 22:35:00 -0800
committerScott Jackson <daneren2005@gmail.com>2013-11-14 22:35:00 -0800
commit2b646e9342e0dd51dc3c9514ece70a8b1d8e6d21 (patch)
treea493dae9e8c68e22393aef11adf0cf386a93785b /src
parent1de219c38bc4b5d01ebc792099e5d1d832c04841 (diff)
downloaddsub-2b646e9342e0dd51dc3c9514ece70a8b1d8e6d21.tar.gz
dsub-2b646e9342e0dd51dc3c9514ece70a8b1d8e6d21.tar.bz2
dsub-2b646e9342e0dd51dc3c9514ece70a8b1d8e6d21.zip
Fix invalidate with tablet
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/activity/SubsonicActivity.java4
-rw-r--r--src/github/daneren2005/dsub/fragments/SelectArtistFragment.java2
-rw-r--r--src/github/daneren2005/dsub/fragments/SubsonicFragment.java2
3 files changed, 6 insertions, 2 deletions
diff --git a/src/github/daneren2005/dsub/activity/SubsonicActivity.java b/src/github/daneren2005/dsub/activity/SubsonicActivity.java
index b164e93e..83baeb6a 100644
--- a/src/github/daneren2005/dsub/activity/SubsonicActivity.java
+++ b/src/github/daneren2005/dsub/activity/SubsonicActivity.java
@@ -574,6 +574,10 @@ public class SubsonicActivity extends ActionBarActivity implements OnItemSelecte
public void invalidate() {
if(currentFragment != null) {
+ while(backStack.size() > 0) {
+ removeCurrent();
+ }
+
currentFragment.invalidate();
populateDrawer();
}
diff --git a/src/github/daneren2005/dsub/fragments/SelectArtistFragment.java b/src/github/daneren2005/dsub/fragments/SelectArtistFragment.java
index 7cca8d6c..5e2548e1 100644
--- a/src/github/daneren2005/dsub/fragments/SelectArtistFragment.java
+++ b/src/github/daneren2005/dsub/fragments/SelectArtistFragment.java
@@ -148,7 +148,7 @@ public class SelectArtistFragment extends SubsonicFragment implements AdapterVie
: selectedFolder.getName();
Util.setSelectedMusicFolderId(context, musicFolderId);
folderName.setText(musicFolderName);
- refresh();
+ context.invalidate();
}
return true;
diff --git a/src/github/daneren2005/dsub/fragments/SubsonicFragment.java b/src/github/daneren2005/dsub/fragments/SubsonicFragment.java
index 5965db0b..d33c1b96 100644
--- a/src/github/daneren2005/dsub/fragments/SubsonicFragment.java
+++ b/src/github/daneren2005/dsub/fragments/SubsonicFragment.java
@@ -332,7 +332,7 @@ public class SubsonicFragment extends Fragment {
public void invalidate() {
if(primaryFragment) {
- refresh(false);
+ refresh(true);
} else {
invalidated = true;
}