aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android/src/github/daneren2005
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-07-01 19:09:06 -0700
committerScott Jackson <daneren2005@gmail.com>2013-07-01 19:09:06 -0700
commit7dece3a6e11b113db602db8a6b2dadd5f30ce209 (patch)
tree17e1717a698e1367e1b1b63f2e0ba88354cffd6b /subsonic-android/src/github/daneren2005
parent9bebdf720ee3326445729a1ca5c046c97d8f503d (diff)
downloaddsub-7dece3a6e11b113db602db8a6b2dadd5f30ce209.tar.gz
dsub-7dece3a6e11b113db602db8a6b2dadd5f30ce209.tar.bz2
dsub-7dece3a6e11b113db602db8a6b2dadd5f30ce209.zip
Remove further unnecessary abstraction
Diffstat (limited to 'subsonic-android/src/github/daneren2005')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java8
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/fragments/SelectPodcastsFragment.java19
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);