Add a splash when loading the activity

This commit is contained in:
Michael Zanetti 2020-09-16 19:44:56 +02:00
parent 63e5d6bf77
commit 3bc92633ab
2 changed files with 5 additions and 0 deletions

View File

@ -41,6 +41,7 @@ ApplicationWindow {
onControlledThingChanged: {
loader.setSource("qrc:/ui/devicepages/" + NymeaUtils.interfaceListToDevicePage(controlledThing.thingClass.interfaces), {thing: controlledThing, header: null})
PlatformHelper.hideSplashScreen();
}
Loader {

View File

@ -86,6 +86,10 @@
<meta-data android:value="@string/fatal_error_msg" android:name="android.app.fatal_error_msg"/>
<!-- Messages maps -->
<meta-data android:name="android.app.extract_android_style" android:value="minimal"/>
<!-- Splash screen -->
<meta-data android:name="android.app.splash_screen_drawable" android:resource="@drawable/splash"/>
<meta-data android:name="android.app.splash_screen_sticky" android:value="true"/>
<!-- Splash screen -->
</activity>
<!-- For adding service(s) please check: https://wiki.qt.io/AndroidServices -->