Browse Source

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

Philipp Wiesemann 11 years ago
parent
commit
788a2e4597
1 changed files with 3 additions and 0 deletions
  1. 3 0
      android-project/src/org/libsdl/app/SDLActivity.java

+ 3 - 0
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
             }