From eab55ff830dfeb045225307f0bf51cb3cacc01d6 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Thu, 24 Oct 2013 20:35:44 -0700 Subject: Fix orientation recreating list for album lists --- src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/github') diff --git a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java index fbf47899..d73316ae 100644 --- a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java +++ b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java @@ -130,7 +130,9 @@ public class SelectDirectoryFragment extends SubsonicFragment implements Adapter albumListType = args.getString(Constants.INTENT_EXTRA_NAME_ALBUM_LIST_TYPE); albumListExtra = args.getString(Constants.INTENT_EXTRA_NAME_ALBUM_LIST_EXTRA); albumListSize = args.getInt(Constants.INTENT_EXTRA_NAME_ALBUM_LIST_SIZE, 0); - entries = (List) args.getSerializable(Constants.FRAGMENT_LIST); + if(entries == null) { + entries = (List) args.getSerializable(Constants.FRAGMENT_LIST); + } } if(entries == null) { -- cgit v1.2.3