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
98d797a2
Commit
98d797a2
authored
5 years ago
by
Geoffrey Métais
Browse files
Options
Downloads
Patches
Plain Diff
Fix playlist tracks number display
Use correct format and prevent I/O from main thread
parent
3c1c867c
No related branches found
No related tags found
No related merge requests found
Pipeline
#11058
passed with stage
in 4 minutes and 10 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
vlc-android/res/values/strings.xml
+1
-1
1 addition, 1 deletion
vlc-android/res/values/strings.xml
vlc-android/src/org/videolan/vlc/util/Kextensions.kt
+1
-1
1 addition, 1 deletion
vlc-android/src/org/videolan/vlc/util/Kextensions.kt
with
2 additions
and
2 deletions
vlc-android/res/values/strings.xml
+
1
−
1
View file @
98d797a2
...
...
@@ -697,7 +697,7 @@
<string
name=
"popup_force_legacy_title"
>
Use custom Picture-in-Picture popup
</string>
<string
name=
"popup_force_legacy_summary"
>
Use custom Picture-in-Picture resizable popup
</string>
<string
name=
"device_default"
>
Device default
</string>
<string
name=
"track_number"
>
%
s
tracks
</string>
<string
name=
"track_number"
>
%
d
tracks
</string>
<string
name=
"jump_to"
>
Jump to
</string>
<string
name=
"show_video_thumbnails_summary"
>
Show video thumbnails in lists
</string>
<string
name=
"show_video_thumbnails"
>
Video thumbnails
</string>
...
...
This diff is collapsed.
Click to expand it.
vlc-android/src/org/videolan/vlc/util/Kextensions.kt
+
1
−
1
View file @
98d797a2
...
...
@@ -177,7 +177,7 @@ fun asyncTextItem(view: TextView, item: MediaLibraryItem?) {
view
.
visibility
=
View
.
GONE
return
}
val
text
=
if
(
item
.
itemType
==
MediaLibraryItem
.
TYPE_PLAYLIST
)
view
.
context
.
getString
(
org
.
videolan
.
vlc
.
R
.
string
.
track_number
,
item
.
tracks
.
size
.
toString
()
)
else
item
.
description
val
text
=
if
(
item
.
itemType
==
MediaLibraryItem
.
TYPE_PLAYLIST
)
view
.
context
.
getString
(
R
.
string
.
track_number
,
item
.
tracks
Count
)
else
item
.
description
if
(
text
.
isNullOrEmpty
())
{
view
.
visibility
=
View
.
GONE
return
...
...
This diff is collapsed.
Click to expand it.
Geoffrey Métais
@Dekans
mentioned in commit
3d21f01b
·
5 years ago
mentioned in commit
3d21f01b
mentioned in commit 3d21f01b898f54d9a17e8da9baa5af4c560ce462
Toggle commit list
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