diff --git a/app/src/main/java/org/schabi/newpipe/detail/VideoItemDetailFragment.java b/app/src/main/java/org/schabi/newpipe/detail/VideoItemDetailFragment.java index fe68d2d73..8dc403f11 100644 --- a/app/src/main/java/org/schabi/newpipe/detail/VideoItemDetailFragment.java +++ b/app/src/main/java/org/schabi/newpipe/detail/VideoItemDetailFragment.java @@ -63,7 +63,6 @@ import org.schabi.newpipe.util.NavStack; import org.schabi.newpipe.util.PermissionHelper; import static android.app.Activity.RESULT_OK; -import static com.nononsenseapps.filepicker.R.styleable.AlertDialog; import static org.schabi.newpipe.ReCaptchaActivity.RECAPTCHA_REQUEST; diff --git a/app/src/main/java/org/schabi/newpipe/search_fragment/SearchInfoItemFragment.java b/app/src/main/java/org/schabi/newpipe/search_fragment/SearchInfoItemFragment.java index b710a7977..6bf261e14 100644 --- a/app/src/main/java/org/schabi/newpipe/search_fragment/SearchInfoItemFragment.java +++ b/app/src/main/java/org/schabi/newpipe/search_fragment/SearchInfoItemFragment.java @@ -205,7 +205,6 @@ public class SearchInfoItemFragment extends Fragment { RECAPTCHA_REQUEST); } }); - } @Override @@ -221,6 +220,8 @@ public class SearchInfoItemFragment extends Fragment { infoListAdapter = new InfoListAdapter(getActivity(), getActivity().findViewById(android.R.id.content)); + infoListAdapter.setFooter(inflater.inflate(R.layout.pignate_footer, recyclerView, false)); + infoListAdapter.showFooter(false); infoListAdapter.setOnStreamInfoItemSelectedListener( new InfoItemBuilder.OnInfoItemSelectedListener() { @Override @@ -324,6 +325,7 @@ public class SearchInfoItemFragment extends Fragment { private void search(String query) { infoListAdapter.clearSteamItemList(); + infoListAdapter.showFooter(false); pageNumber = 0; searchQuery = query; search(query, pageNumber); @@ -344,6 +346,7 @@ public class SearchInfoItemFragment extends Fragment { private void setDoneLoading() { this.isLoading = false; loadingIndicator.setVisibility(View.GONE); + infoListAdapter.showFooter(true); } /**