Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
531
Issue boards
Milestones
Wiki
Code
Merge requests
13
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
797ed0ae
Commit
797ed0ae
authored
5 years ago
by
Nicolas Pomepuy
Committed by
Geoffrey Métais
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Improve equalizer save dialog
parent
bc34553b
No related branches found
No related tags found
No related merge requests found
Pipeline
#7317
passed with stage
in 3 minutes and 46 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vlc-android/src/org/videolan/vlc/gui/audio/EqualizerFragment.kt
+8
-2
8 additions, 2 deletions
...droid/src/org/videolan/vlc/gui/audio/EqualizerFragment.kt
with
8 additions
and
2 deletions
vlc-android/src/org/videolan/vlc/gui/audio/EqualizerFragment.kt
+
8
−
2
View file @
797ed0ae
...
...
@@ -57,7 +57,7 @@ class EqualizerFragment : VLCBottomSheetDialogFragment() {
override
fun
needToManageOrientation
()
=
false
override
fun
initialFocusedView
()
=
binding
.
equalizerB
ands
.
getChildAt
(
0
)
override
fun
initialFocusedView
()
=
binding
.
equalizerB
utton
private
lateinit
var
equalizer
:
MediaPlayer
.
Equalizer
private
var
customCount
=
0
...
...
@@ -288,6 +288,12 @@ class EqualizerFragment : VLCBottomSheetDialogFragment() {
input
.
setText
(
oldName
)
input
.
setSelectAllOnFocus
(
true
)
val
container
=
FrameLayout
(
context
)
val
klNormal
=
resources
.
getDimension
(
R
.
dimen
.
kl_normal
).
toInt
()
container
.
setPadding
(
klNormal
,
0
,
klNormal
,
0
)
container
.
addView
(
input
)
val
saveEqualizer
=
AlertDialog
.
Builder
(
requireActivity
())
.
setTitle
(
resources
.
getString
(
if
(
displayedByUser
)
R
.
string
.
custom_set_save_title
...
...
@@ -297,7 +303,7 @@ class EqualizerFragment : VLCBottomSheetDialogFragment() {
R
.
string
.
existing_custom_set_save_message
else
R
.
string
.
new_custom_set_save_message
))
.
setView
(
input
)
.
setView
(
container
)
.
setPositiveButton
(
R
.
string
.
save
,
null
)
.
setNegativeButton
(
R
.
string
.
do_not_save
)
{
_
,
_
->
if
(
onPause
)
...
...
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