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
Geoffrey Métais
VLC-Android
Commits
242f2f5c
Commit
242f2f5c
authored
Apr 25, 2019
by
Nicolas Pomepuy
Committed by
Geoffrey Métais
Apr 26, 2019
Browse files
Fix audio player menu visibility
parent
0221a055
Changes
1
Hide whitespace changes
Inline
Side-by-side
vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt
View file @
242f2f5c
...
...
@@ -24,6 +24,7 @@ import android.Manifest
import
android.annotation.TargetApi
import
android.content.Context
import
android.content.SharedPreferences
import
android.content.res.Configuration
import
android.net.Uri
import
android.os.Build
import
android.os.Bundle
...
...
@@ -151,6 +152,11 @@ class AudioPlayer : Fragment(), PlaylistAdapter.IPlayer, TextWatcher {
binding
.
timeline
.
setOnSeekBarChangeListener
(
timelineListener
)
}
override
fun
onResume
()
{
onStateChanged
(
playerState
)
super
.
onResume
()
}
override
fun
onSaveInstanceState
(
outState
:
Bundle
)
{
super
.
onSaveInstanceState
(
outState
)
outState
.
putInt
(
"player_state"
,
playerState
)
...
...
@@ -366,7 +372,7 @@ class AudioPlayer : Fragment(), PlaylistAdapter.IPlayer, TextWatcher {
headerTimeVisible
:
Boolean
,
searchVisible
:
Boolean
,
filter
:
Boolean
=
false
)
{
this
.
advFuncVisible
=
!
filter
&&
advFuncVisible
this
.
playlistSwitchVisible
=
!
filter
&&
playlistSwitchVisible
this
.
playlistSwitchVisible
=
!
filter
&&
playlistSwitchVisible
&&
resources
.
configuration
.
orientation
!=
Configuration
.
ORIENTATION_LANDSCAPE
this
.
headerPlayPauseVisible
=
!
filter
&&
headerPlayPauseVisible
this
.
progressBarVisible
=
!
filter
&&
progressBarVisible
this
.
headerTimeVisible
=
!
filter
&&
headerTimeVisible
...
...
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