Prevent wallpaper mode from overwriting navbar color.

This commit is contained in:
Alex Hart
2025-04-10 14:12:04 -03:00
parent 021330a25d
commit 35235509ca
2 changed files with 8 additions and 2 deletions

View File

@@ -784,13 +784,17 @@ public class InputPanel extends ConstraintLayout
}
private void updateVisibility() {
if (hideForGroupState || hideForBlockedState || hideForSearch || hideForSelection || hideForMessageRequestState) {
if (isHidden()) {
setVisibility(GONE);
} else {
setVisibility(VISIBLE);
}
}
public boolean isHidden() {
return hideForGroupState || hideForBlockedState || hideForSearch || hideForSelection || hideForMessageRequestState;
}
public @Nullable MessageRecord getEditMessage() {
return messageToEdit;
}

View File

@@ -1482,7 +1482,9 @@ class ConversationFragment :
)
)
binding.navBar.setBackgroundColor(ContextCompat.getColor(requireContext(), navColor))
if (!inputPanel.isHidden) {
binding.navBar.setBackgroundColor(ContextCompat.getColor(requireContext(), navColor))
}
}
private fun presentChatColors(chatColors: ChatColors) {