Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Ewout ter Hoeven
VLC-Android
Commits
c3490afd
Commit
c3490afd
authored
Feb 19, 2015
by
Geoffrey Métais
Browse files
Hide delete option on ext storage with lollipoop
parent
0604f3fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
View file @
c3490afd
...
...
@@ -30,6 +30,7 @@ import android.content.res.Configuration;
import
android.content.res.Resources
;
import
android.os.Build
;
import
android.os.Bundle
;
import
android.os.Environment
;
import
android.os.Handler
;
import
android.preference.PreferenceManager
;
import
android.support.v4.app.FragmentActivity
;
...
...
@@ -347,6 +348,8 @@ public class VideoGridFragment extends BrowserFragment implements ISortable, IVi
if
(
media
.
getMeta
(
Media
.
Meta
.
Title
)
!=
null
)
hasInfo
=
true
;
menu
.
findItem
(
R
.
id
.
video_list_info
).
setVisible
(
hasInfo
);
menu
.
findItem
(
R
.
id
.
video_list_delete
).
setVisible
(!
LibVlcUtil
.
isLolliPopOrLater
()
||
mediaWrapper
.
getLocation
().
startsWith
(
"file://"
+
Environment
.
getExternalStorageDirectory
().
getPath
()));
}
@Override
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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