Use Holo theme on Android 5.0.
authorBogDan Vatra <bogdan@kde.org>
Wed, 26 Nov 2014 12:55:51 +0000 (14:55 +0200)
committerJani Heikkinen <jani.heikkinen@theqtcompany.com>
Thu, 27 Nov 2014 10:22:23 +0000 (11:22 +0100)
This is a temporary "fix" until we'll fix all the problems with the new
Android Material theme.

Task-number: QTBUG-42900
Change-Id: I5485cfd5ac5fdd66cb85da423fe2e63e65be010f
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
src/android/java/src/org/qtproject/qt5/android/bindings/QtActivity.java

index 0c52bc75303958d19980474796b1ccafca26be03..75f10ad3bae46c987d64c262231173ce7259824b 100644 (file)
@@ -187,7 +187,7 @@ public class QtActivity extends Activity
             QT_ANDROID_THEMES = new String[] {"Theme_Light"};
             QT_ANDROID_DEFAULT_THEME = "Theme_Light";
         }
-        else if (Build.VERSION.SDK_INT >= 11 && Build.VERSION.SDK_INT <= 13) {
+        else if ((Build.VERSION.SDK_INT >= 11 && Build.VERSION.SDK_INT <= 13) || Build.VERSION.SDK_INT == 21){
             QT_ANDROID_THEMES = new String[] {"Theme_Holo_Light"};
             QT_ANDROID_DEFAULT_THEME = "Theme_Holo_Light";
         } else {