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
14
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
4d507500
Commit
4d507500
authored
5 years ago
by
Geoffrey Métais
Browse files
Options
Downloads
Patches
Plain Diff
DB dump: extract hardcoded strings
parent
1a9feed0
No related branches found
No related tags found
No related merge requests found
Pipeline
#8678
passed with stage
in 5 minutes and 40 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
vlc-android/res/values/strings.xml
+2
-0
2 additions, 0 deletions
vlc-android/res/values/strings.xml
vlc-android/src/org/videolan/vlc/gui/preferences/PreferencesAdvanced.kt
+2
-2
2 additions, 2 deletions
...c/org/videolan/vlc/gui/preferences/PreferencesAdvanced.kt
with
4 additions
and
2 deletions
vlc-android/res/values/strings.xml
+
2
−
0
View file @
4d507500
...
...
@@ -720,4 +720,6 @@
<string
name=
"validation_delete_playlist_text"
>
This action cannot be undone.
</string>
<string
name=
"display_in_list"
>
Display in list
</string>
<string
name=
"display_in_grid"
>
Display in grid
</string>
<string
name=
"dump_db_succes"
>
Database dumped on internal storage root
</string>
<string
name=
"dump_db_failure"
>
Failed to dump database
</string>
</resources>
This diff is collapsed.
Click to expand it.
vlc-android/src/org/videolan/vlc/gui/preferences/PreferencesAdvanced.kt
+
2
−
2
View file @
4d507500
...
...
@@ -111,12 +111,12 @@ class PreferencesAdvanced : BasePreferenceFragment(), SharedPreferences.OnShared
if
(
FileUtils
.
copyFile
(
db
,
File
(
AndroidDevices
.
EXTERNAL_PUBLIC_DIRECTORY
+
AbstractMedialibrary
.
VLC_MEDIA_DB_NAME
)))
runOnMainThread
(
Runnable
{
val
ctx
=
context
if
(
ctx
!=
null
)
Toast
.
makeText
(
ctx
,
"Database dumped on internal storage root"
,
Toast
.
LENGTH_LONG
).
show
()
if
(
ctx
!=
null
)
Toast
.
makeText
(
ctx
,
getString
(
R
.
string
.
dump_db_succes
)
,
Toast
.
LENGTH_LONG
).
show
()
})
else
runOnMainThread
(
Runnable
{
val
ctx
=
context
if
(
ctx
!=
null
)
Toast
.
makeText
(
ctx
,
"Failed to dumped database"
,
Toast
.
LENGTH_LONG
).
show
()
if
(
ctx
!=
null
)
Toast
.
makeText
(
ctx
,
getString
(
R
.
string
.
dump_db_failure
)
,
Toast
.
LENGTH_LONG
).
show
()
})
}
if
(
Permissions
.
canWriteStorage
())
...
...
This diff is collapsed.
Click to expand it.
Geoffrey Métais
@Dekans
mentioned in commit
baa75df6
·
5 years ago
mentioned in commit
baa75df6
mentioned in commit baa75df65add6ef66ff9b6d9fcbd897efb323303
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