diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java index b5e0f22b..092d63ce 100644 --- a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java +++ b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java @@ -48,7 +48,7 @@ public class SelectDirectoryFragment extends SubsonicFragment implements Adapter private static final String TAG = SelectDirectoryFragment.class.getSimpleName();
private DragSortListView entryList;
- int rootId;
+ int rootId = -1;
private View emptyView;
private boolean hideButtons = false;
private Boolean licenseValid;
@@ -72,7 +72,6 @@ public class SelectDirectoryFragment extends SubsonicFragment implements Adapter public SelectDirectoryFragment() {
super();
- rootId = getNewId();
}
@Override
@@ -86,6 +85,9 @@ public class SelectDirectoryFragment extends SubsonicFragment implements Adapter entries = (List<MusicDirectory.Entry>) bundle.getSerializable(Constants.FRAGMENT_LIST);
restoredInstance = true;
}
+ if(rootId == -1) {
+ rootId = getNewId();
+ }
}
@Override
|