Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
530
Issue boards
Milestones
Wiki
Code
Merge requests
15
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
6832f613
Commit
6832f613
authored
3 years ago
by
Nicolas Pomepuy
Browse files
Options
Downloads
Patches
Plain Diff
Fix media scanning view position on tablets
parent
4c751925
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1193
Tablet UI
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
application/vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.kt
+8
-0
8 additions, 0 deletions
.../src/org/videolan/vlc/gui/AudioPlayerContainerActivity.kt
with
8 additions
and
0 deletions
application/vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.kt
+
8
−
0
View file @
6832f613
...
...
@@ -63,6 +63,7 @@ import org.videolan.vlc.gui.helpers.PlayerBehavior
import
org.videolan.vlc.gui.helpers.UiTools
import
org.videolan.vlc.gui.audio.EqualizerFragment
import
org.videolan.vlc.gui.helpers.*
import
org.videolan.vlc.gui.helpers.UiTools.isTablet
import
org.videolan.vlc.interfaces.IRefreshable
import
org.videolan.vlc.media.PlaylistManager
import
kotlin.math.max
...
...
@@ -449,6 +450,13 @@ open class AudioPlayerContainerActivity : BaseActivity(), KeycodeListener {
scanProgressText
=
findViewById
(
R
.
id
.
scan_progress_text
)
scanProgressBar
=
findViewById
(
R
.
id
.
scan_progress_bar
)
}
else
scanProgressLayout
?.
visibility
=
View
.
VISIBLE
vsc
?.
let
{
val
lp
=
it
.
layoutParams
as
CoordinatorLayout
.
LayoutParams
lp
.
anchorId
=
if
(
isTablet
())
R
.
id
.
fragment_placeholder
else
R
.
id
.
navigation
lp
.
anchorGravity
=
if
(
isTablet
())
Gravity
.
BOTTOM
else
Gravity
.
TOP
lp
.
marginStart
=
if
(
isTablet
())
72
.
dp
else
0
.
dp
it
.
layoutParams
=
lp
}
scanProgressText
?.
text
=
discovery
}
...
...
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