Skip to content
Snippets Groups Projects
Commit d9faec30 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Use view context to get preferences

parent 94705124
No related branches found
No related tags found
No related merge requests found
......@@ -408,7 +408,7 @@ public class VideoGridFragment extends MediaBrowserFragment<VideosProvider> impl
((MainActivity)activity).getNavigator().showSecondaryFragment(SecondaryActivity.VIDEO_GROUP_LIST, title);
} else {
media.removeFlags(MediaWrapper.MEDIA_FORCE_AUDIO);
final SharedPreferences settings = PreferenceManager.getDefaultSharedPreferences(VLCApplication.getAppContext());
final SharedPreferences settings = PreferenceManager.getDefaultSharedPreferences(v.getContext());
if (settings.getBoolean("force_play_all", false)) {
final List<MediaWrapper> playList = new ArrayList<>();
MediaUtils.openList(activity, playList, mAdapter.getListWithPosition(playList, position));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment