Do not change convo status bar color on API<23

This commit is contained in:
Alex Hart
2022-02-02 10:52:51 -04:00
committed by Cody Henthorne
parent 5acbe260e9
commit 87608c6d3a

View File

@@ -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);
}
}