Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Geoffrey Métais
VLC-Android
Commits
d9faec30
Commit
d9faec30
authored
May 04, 2018
by
Geoffrey Métais
Browse files
Use view context to get preferences
parent
94705124
Changes
1
Hide whitespace changes
Inline
Side-by-side
vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
View file @
d9faec30
...
...
@@ -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
.
get
App
Context
());
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
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment