From afcab5ecdc0d223877aea5d7dfafb92191ff0974 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Tue, 26 Nov 2013 19:47:39 -0800 Subject: Better way of handling loading when not created yet --- src/github/daneren2005/dsub/fragments/SearchFragment.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/github/daneren2005/dsub/fragments/SearchFragment.java b/src/github/daneren2005/dsub/fragments/SearchFragment.java index 22a3cff0..0e084c69 100644 --- a/src/github/daneren2005/dsub/fragments/SearchFragment.java +++ b/src/github/daneren2005/dsub/fragments/SearchFragment.java @@ -182,9 +182,11 @@ public class SearchFragment extends SubsonicFragment { @Override public void setPrimaryFragment(boolean primary) { super.setPrimaryFragment(primary); - if(rootView != null && primary) { - context.onNewIntent(context.getIntent()); - } + } + + @Override + public void refresh(boolean refresh) { + context.onNewIntent(context.getIntent()); } public void search(final String query, final boolean autoplay) { -- cgit v1.2.3