diff options
Diffstat (limited to 'subsonic-android/src')
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java | 8 | ||||
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/fragments/SelectPodcastsFragment.java | 19 |
2 files changed, 6 insertions, 21 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java b/subsonic-android/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java index 9bff7e17..1626768e 100644 --- a/subsonic-android/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java +++ b/subsonic-android/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java @@ -77,9 +77,6 @@ public class SelectDirectoryFragment extends SubsonicFragment implements Adapter public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle bundle) {
rootView = inflater.inflate(R.layout.select_album, container, false);
rootView.setId(rootId);
- if(!primaryFragment) {
- ((ViewGroup)rootView).getChildAt(0).setVisibility(View.GONE);
- }
entryList = (DragSortListView) rootView.findViewById(R.id.select_album_entries);
footer = LayoutInflater.from(context).inflate(R.layout.select_album_footer, entryList, false);
@@ -283,11 +280,6 @@ public class SelectDirectoryFragment extends SubsonicFragment implements Adapter }
}
}
-
- @Override
- public void setPrimaryFragment(boolean primary) {
- super.setPrimaryFragment(primary);
- }
@Override
protected void refresh(boolean refresh) {
diff --git a/subsonic-android/src/github/daneren2005/dsub/fragments/SelectPodcastsFragment.java b/subsonic-android/src/github/daneren2005/dsub/fragments/SelectPodcastsFragment.java index 923eac87..3c9ba7c7 100644 --- a/subsonic-android/src/github/daneren2005/dsub/fragments/SelectPodcastsFragment.java +++ b/subsonic-android/src/github/daneren2005/dsub/fragments/SelectPodcastsFragment.java @@ -59,8 +59,13 @@ public class SelectPodcastsFragment extends SubsonicFragment implements AdapterV podcastListView = (ListView)rootView.findViewById(R.id.select_podcasts_list);
podcastListView.setOnItemClickListener(this);
+ registerForContextMenu(podcastListView);
emptyView = rootView.findViewById(R.id.select_podcasts_empty);
- refresh();
+ if(!primaryFragment) {
+ invalidated = true;
+ } else {
+ refresh(false);
+ }
return rootView;
}
@@ -80,18 +85,6 @@ public class SelectPodcastsFragment extends SubsonicFragment implements AdapterV }
@Override
- public void setPrimaryFragment(boolean primary) {
- super.setPrimaryFragment(primary);
- if(rootView != null) {
- if(primary) {
- ((ViewGroup)rootView).getChildAt(0).setVisibility(View.VISIBLE);
- } else {
- ((ViewGroup)rootView).getChildAt(0).setVisibility(View.GONE);
- }
- }
- }
-
- @Override
protected void refresh(final boolean refresh) {
setTitle(R.string.button_bar_podcasts);
|