Commit 34c45f98 authored by Geoffrey Métais's avatar Geoffrey Métais

Use view context to get preferences

parent d2f2d79f
......@@ -538,7 +538,7 @@ public class VideoGridFragment extends SortableFragment<VideoListAdapter> implem
((MainActivity)activity).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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment