Do not change convo status bar color on API<23

fork-5.53.8
Alex Hart 2022-02-02 10:52:51 -04:00 zatwierdzone przez Cody Henthorne
rodzic 5acbe260e9
commit 87608c6d3a
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -2148,7 +2148,7 @@ public class ConversationParentFragment extends Fragment
int toolbarColor = getResources().getColor(R.color.conversation_toolbar_color_wallpaper);
toolbar.setBackgroundColor(toolbarColor);
// TODO [alex] LargeScreenSupport -- statusBarBox
if (Build.VERSION.SDK_INT > 21) {
if (Build.VERSION.SDK_INT > 23) {
WindowUtil.setStatusBarColor(requireActivity().getWindow(), toolbarColor);
}
} else {
@ -2162,7 +2162,7 @@ public class ConversationParentFragment extends Fragment
int toolbarColor = getResources().getColor(R.color.conversation_toolbar_color);
toolbar.setBackgroundColor(toolbarColor);
// TODO [alex] LargeScreenSupport -- statusBarBox
if (Build.VERSION.SDK_INT > 21) {
if (Build.VERSION.SDK_INT > 23) {
WindowUtil.setStatusBarColor(requireActivity().getWindow(), toolbarColor);
}
}