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
49f1e0c5
Commit
49f1e0c5
authored
2 years ago
by
Nicolas Pomepuy
Browse files
Options
Downloads
Patches
Plain Diff
Make the SwipeRefreshLayout background color follow the theme
Fixes #2666
parent
5f03d83f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1502
Make the SwipeRefreshLayout background color follow the theme
Pipeline
#258121
passed with stage
Stage:
in 3 minutes and 43 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
application/vlc-android/src/org/videolan/vlc/gui/BaseFragment.kt
+4
-1
4 additions, 1 deletion
...tion/vlc-android/src/org/videolan/vlc/gui/BaseFragment.kt
with
4 additions
and
1 deletion
application/vlc-android/src/org/videolan/vlc/gui/BaseFragment.kt
+
4
−
1
View file @
49f1e0c5
...
...
@@ -2,6 +2,7 @@ package org.videolan.vlc.gui
import
android.content.Intent
import
android.content.res.TypedArray
import
android.graphics.Color
import
android.os.Bundle
import
android.util.TypedValue
import
android.view.Menu
...
...
@@ -55,10 +56,12 @@ abstract class BaseFragment : Fragment(), ActionMode.Callback {
super
.
onViewCreated
(
view
,
savedInstanceState
)
view
.
findViewById
<
SwipeRefreshLayout
>(
R
.
id
.
swipeLayout
)
?.
let
{
swipeRefreshLayout
=
it
val
a
:
TypedArray
=
requireActivity
().
obtainStyledAttributes
(
TypedValue
().
data
,
intArrayOf
(
R
.
attr
.
colorPrimary
))
val
a
:
TypedArray
=
requireActivity
().
obtainStyledAttributes
(
TypedValue
().
data
,
intArrayOf
(
R
.
attr
.
colorPrimary
,
R
.
attr
.
background_default
))
val
color
=
a
.
getColor
(
0
,
0
)
val
bColor
=
a
.
getColor
(
1
,
Color
.
WHITE
)
a
.
recycle
()
it
.
setColorSchemeColors
(
color
)
it
.
setProgressBackgroundColorSchemeColor
(
bColor
)
}
val
fab
=
requireActivity
().
findViewById
<
FloatingActionButton
?>(
R
.
id
.
fab
)
((
fab
?.
layoutParams
as
?
CoordinatorLayout
.
LayoutParams
)
?.
behavior
as
?
FloatingActionButtonBehavior
)
?.
shouldNeverShow
=
!
hasFAB
()
...
...
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