Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
533
Issue boards
Milestones
Wiki
Code
Merge requests
11
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC-Android
Commits
9e18c70c
Commit
9e18c70c
authored
5 years ago
by
Nicolas Pomepuy
Committed by
Geoffrey Métais
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix audio player menu visibility
(cherry picked from commit
242f2f5c
)
parent
f89cba7b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt
+7
-1
7 additions, 1 deletion
vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt
with
7 additions
and
1 deletion
vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt
+
7
−
1
View file @
9e18c70c
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment