Fix status bar color on Android 5.x.

fork-5.53.8
Greyson Parrelli 2021-02-12 14:16:21 -05:00 zatwierdzone przez Cody Henthorne
rodzic 424979d91f
commit 37f4557fef
1 zmienionych plików z 6 dodań i 2 usunięć

Wyświetl plik

@ -2003,7 +2003,9 @@ public class ConversationActivity extends PassphraseRequiredActivity
int toolbarColor = getResources().getColor(R.color.conversation_toolbar_color_wallpaper);
toolbar.setBackgroundColor(toolbarColor);
WindowUtil.setStatusBarColor(getWindow(), toolbarColor);
if (Build.VERSION.SDK_INT > 21) {
WindowUtil.setStatusBarColor(getWindow(), toolbarColor);
}
} else {
wallpaper.setImageDrawable(null);
wallpaperDim.setVisibility(View.GONE);
@ -2014,7 +2016,9 @@ public class ConversationActivity extends PassphraseRequiredActivity
int toolbarColor = getResources().getColor(R.color.conversation_toolbar_color);
toolbar.setBackgroundColor(toolbarColor);
WindowUtil.setStatusBarColor(getWindow(), toolbarColor);
if (Build.VERSION.SDK_INT > 21) {
WindowUtil.setStatusBarColor(getWindow(), toolbarColor);
}
}
fragment.onWallpaperChanged(chatWallpaper);
}