Android: Make old manifests work on Android 5
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>
Fri, 21 Nov 2014 09:15:58 +0000 (10:15 +0100)
committerJani Heikkinen <jani.heikkinen@theqtcompany.com>
Fri, 21 Nov 2014 15:47:45 +0000 (16:47 +0100)
On newer Androids, exceptions have started happening when using old
manifests that refer to splash.xml because the layout is missing
some required attributes. We add these to avoid crashing with these
apps.

Change-Id: Iefd4718e811df844e53890ee5bc772871d0a9803
Task-number: QTBUG-42807
Reviewed-by: Christian Stromme <christian.stromme@theqtcompany.com>
src/android/java/res/layout/splash.xml

index 6875521a128f70d1b032699bf578278045310408..476d91a844164326831433eeb329b663f6b64ec2 100644 (file)
@@ -1,2 +1,4 @@
 <?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" />
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    android:layout_width="fill_parent"
+    android:layout_height="fill_parent" />