Commit 788a2e4597f452e7af2660dbd35af248f3cc948c

Philipp Wiesemann 2014-09-24T23:46:46

Added setting configured color to button texts for messagebox on Android.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/android-project/src/org/libsdl/app/SDLActivity.java b/android-project/src/org/libsdl/app/SDLActivity.java
index f10a9d9..950cd43 100644
--- a/android-project/src/org/libsdl/app/SDLActivity.java
+++ b/android-project/src/org/libsdl/app/SDLActivity.java
@@ -741,6 +741,9 @@ public class SDLActivity extends Activity {
                 }
             }
             button.setText(buttonTexts[i]);
+            if (textColor != Color.TRANSPARENT) {
+                button.setTextColor(textColor);
+            }
             if (buttonBorderColor != Color.TRANSPARENT) {
                 // TODO set color for border of messagebox button
             }