From: Damyan Ivanov Date: Wed, 20 May 2020 19:31:16 +0000 (+0300) Subject: fix status bar background when switching profiles (and themes) X-Git-Tag: v0.14.0~69 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=dc53d92774b2ad47a921646bca65ada19aeed624;p=mobile-ledger.git fix status bar background when switching profiles (and themes) it appears that if there is a theme defined in the app manifest, the status bar takes its background from there when the activity is recreate()'d after a profile/theme change however, this needs that the theme is set up before the AppCompatActivity's onCreate() is called --- diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index c7e09ef2..c0ec9059 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -29,7 +29,6 @@ android:roundIcon="@mipmap/app_icon" android:supportsRtl="true" android:networkSecurityConfig="@xml/network_security_config" - android:theme="@style/AppTheme" tools:ignore="GoogleAppIndexingWarning"> { mProfile = mobileLedgerProfile;