Fixed theme issues with 'What's new' dialog text color

pull/14/head
Sam Bosley 13 years ago
parent 89f97434cd
commit d3fc0b7d5c

@ -103,7 +103,15 @@ public class ThemeService {
} }
public static String getDialogTextColor() { public static String getDialogTextColor() {
return (AndroidUtilities.getSdkVersion() >= 11 ? "black" : "white"); if (AndroidUtilities.getSdkVersion() >= 11) {
int theme = getTheme();
if (theme == R.style.Theme || theme == R.style.Theme_Transparent)
return "white";
else
return "black";
} else {
return "white";
}
} }
public static int getDrawable(int lightDrawable) { public static int getDrawable(int lightDrawable) {

Loading…
Cancel
Save