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
android:roundIcon="@mipmap/app_icon"
android:supportsRtl="true"
android:networkSecurityConfig="@xml/network_security_config"
- android:theme="@style/AppTheme"
tools:ignore="GoogleAppIndexingWarning">
<activity
android:name=".ui.activity.MainActivity"
}
protected void onCreate(@Nullable Bundle savedInstanceState) {
initProfile();
+ setupProfileColors();
super.onCreate(savedInstanceState);
- setupProfileColors();
Data.profile.observe(this, mobileLedgerProfile -> {
mProfile = mobileLedgerProfile;