From 27c9de59eb6074d277880a46d6bb6fb221121395 Mon Sep 17 00:00:00 2001 From: tophf Date: Thu, 20 Dec 2018 11:40:20 +0300 Subject: [PATCH] Prevent white splash on cold start Currently gh4a sets the user theme in BaseActivity::onCreate() but still the white splash is frequently shown on budget devices during a cold start of the app, which is extremely annoying in case the dark theme is used in the app and in the entire UI of the device. This patch makes it so that a transparent default theme is shown before the actual theme is applied. On a slower device nothing will be shown after the user launched the app until the main screen is presented so one might think that could perplex some users, but I think they are used to their device being slow and encounter such pauses regularly. On a fast device there'll be no perceivable difference to the old behavior. --- app/src/main/AndroidManifest.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index b820a24d8..0d21aa353 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -18,7 +18,7 @@ android:allowBackup="true" android:icon="@drawable/octodroid" android:label="@string/app_name" - android:theme="@style/LightTheme" + android:theme="@style/TransparentLightTheme" android:fullBackupContent="@xml/backup_descriptor">