Skip to content

Commit

Permalink
Bug Fix related to d3a0bab with respect to Channel Browser and Search…
Browse files Browse the repository at this point in the history
… fragments.
  • Loading branch information
ram-on committed Apr 10, 2017
1 parent d3a0bab commit 2161ebe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2161ebe

Please sign in to comment.