From 2161ebe44fb77950ff9d04c55d50f639dddc6916 Mon Sep 17 00:00:00 2001 From: Ramon M Date: Mon, 10 Apr 2017 20:43:33 +0200 Subject: [PATCH] Bug Fix related to d3a0babce5f0f041d0a253e867e5e754f58e477a with respect to Channel Browser and Search fragments. --- .../free/rm/skytube/gui/fragments/ChannelBrowserFragment.java | 2 ++ .../free/rm/skytube/gui/fragments/SearchVideoGridFragment.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/src/main/java/free/rm/skytube/gui/fragments/ChannelBrowserFragment.java b/app/src/main/java/free/rm/skytube/gui/fragments/ChannelBrowserFragment.java index 7a713b99a0..974e372f78 100644 --- a/app/src/main/java/free/rm/skytube/gui/fragments/ChannelBrowserFragment.java +++ b/app/src/main/java/free/rm/skytube/gui/fragments/ChannelBrowserFragment.java @@ -123,6 +123,8 @@ public void onClick(View v) { if (videoGridAdapter == null) { videoGridAdapter = new VideoGridAdapter(getActivity(), false /*hide channel name*/); videoGridAdapter.setVideoCategory(VideoCategory.CHANNEL_VIDEOS, channelId); + } else { + videoGridAdapter.setContext(getActivity()); } videoGridAdapter.setListener((MainActivityListener)getActivity()); if(channel != null) diff --git a/app/src/main/java/free/rm/skytube/gui/fragments/SearchVideoGridFragment.java b/app/src/main/java/free/rm/skytube/gui/fragments/SearchVideoGridFragment.java index 1fd953ecd7..eac48e4f72 100644 --- a/app/src/main/java/free/rm/skytube/gui/fragments/SearchVideoGridFragment.java +++ b/app/src/main/java/free/rm/skytube/gui/fragments/SearchVideoGridFragment.java @@ -75,6 +75,8 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle sa // up by the VideoGridFragment this.videoGridAdapter.setVideoCategory(VideoCategory.SEARCH_QUERY, searchQuery); } + } else { + videoGridAdapter.setContext(getActivity()); } // set the action bar's title