Skip to content

Commit 36d5492

Browse files
authored
The argument name changed to "presplash_color"
I changed the name from to "presplash_bkgcolor" to to "presplash_color".
1 parent ff04c69 commit 36d5492

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

pythonforandroid/bootstraps/sdl2/build/src/org/kivy/android/PythonActivity.java

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -359,14 +359,7 @@ protected void showLoadingScreen() {
359359
mImageView.setImageBitmap(bitmap);
360360

361361
/*
362-
* Edit this file: pythonforandroid/bootstraps/sdl2/build/templates/strings.tmpl.xml
363-
* and set the background presplash color
364-
* <?xml version="1.0" encoding="utf-8"?>
365-
* <resources>
366-
* <string name="app_name">{{ args.name }}</string>
367-
* <string name="private_version">0.1</string>
368-
* <string name="presplash_bkgcolor">#FF00FFFF</string>
369-
* </resources>
362+
* Set the presplash loading screen background color
370363
* https://developer.android.com/reference/android/graphics/Color.html
371364
* Parse the color string, and return the corresponding color-int.
372365
* If the string cannot be parsed, throws an IllegalArgumentException exception.
@@ -375,7 +368,7 @@ protected void showLoadingScreen() {
375368
* 'lightgray', 'darkgray', 'grey', 'lightgrey', 'darkgrey', 'aqua', 'fuchsia',
376369
* 'lime', 'maroon', 'navy', 'olive', 'purple', 'silver', 'teal'.
377370
*/
378-
String backgroundColor = resourceManager.getString("presplash_bkgcolor");
371+
String backgroundColor = resourceManager.getString("presplash_color");
379372
if (backgroundColor != null) {
380373
try {
381374
mImageView.setBackgroundColor(Color.parseColor(backgroundColor));

0 commit comments

Comments
 (0)