aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-07-23 19:42:28 -0700
committerScott Jackson <daneren2005@gmail.com>2014-07-23 19:42:28 -0700
commit4a54e5a0cb226b61d528b5bb028303388b58a6e9 (patch)
treea3bcef07754762c83ca7cd83c8255aabadb94bec
parentb3e4fa7851f1dfa95fe5aa4ffd9a2fd155039cca (diff)
downloaddsub-4a54e5a0cb226b61d528b5bb028303388b58a6e9.tar.gz
dsub-4a54e5a0cb226b61d528b5bb028303388b58a6e9.tar.bz2
dsub-4a54e5a0cb226b61d528b5bb028303388b58a6e9.zip
Fix issue where switching online/offline keeps Home as selected
-rw-r--r--src/github/daneren2005/dsub/activity/SubsonicActivity.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/activity/SubsonicActivity.java b/src/github/daneren2005/dsub/activity/SubsonicActivity.java
index b5a8568f..0c1a2c9a 100644
--- a/src/github/daneren2005/dsub/activity/SubsonicActivity.java
+++ b/src/github/daneren2005/dsub/activity/SubsonicActivity.java
@@ -457,6 +457,7 @@ public class SubsonicActivity extends ActionBarActivity implements OnItemSelecte
}
if(drawerList.getChildAt(lastSelectedPosition) == null) {
+ lastSelectedView = null;
drawerAdapter.setSelectedPosition(lastSelectedPosition);
} else {
lastSelectedView = (TextView) drawerList.getChildAt(lastSelectedPosition).findViewById(R.id.drawer_name);