Color nav bar to match unmute in release note channel.

fork-5.53.8
Cody Henthorne 2022-08-08 14:17:28 -04:00
rodzic 5164a44ee8
commit 756b926f6f
2 zmienionych plików z 7 dodań i 1 usunięć

Wyświetl plik

@ -2161,7 +2161,9 @@ public class ConversationParentFragment extends Fragment
int toolbarTextAndIconColor = getResources().getColor(R.color.signal_colorOnSurface);
toolbar.setTitleTextColor(toolbarTextAndIconColor);
setToolbarActionItemTint(toolbar, toolbarTextAndIconColor);
WindowUtil.setNavigationBarColor(requireActivity(), getResources().getColor(R.color.signal_colorBackground));
if (!releaseChannelUnmute.resolved()) {
WindowUtil.setNavigationBarColor(requireActivity(), getResources().getColor(R.color.signal_colorBackground));
}
}
fragment.onWallpaperChanged(chatWallpaper);
messageRequestBottomView.setWallpaperEnabled(chatWallpaper != null);
@ -2719,8 +2721,10 @@ public class ConversationParentFragment extends Fragment
unmuteBanner.setVisibility(View.VISIBLE);
unmuteBanner.findViewById(R.id.conversation_activity_unmute_button)
.setOnClickListener(v -> handleUnmuteNotifications());
WindowUtil.setNavigationBarColor(requireActivity(), getResources().getColor(R.color.signal_colorSurface2));
} else if (releaseChannelUnmute.resolved()) {
releaseChannelUnmute.get().setVisibility(View.GONE);
WindowUtil.setNavigationBarColor(requireActivity(), getResources().getColor(R.color.signal_colorBackground));
}
} else {
boolean inactivePushGroup = isPushGroupConversation() && !recipient.isActiveGroup();

Wyświetl plik

@ -1046,6 +1046,8 @@ public class Recipient {
public @Nullable ChatWallpaper getWallpaper() {
if (wallpaper != null) {
return wallpaper;
} else if (isReleaseNotes()) {
return null;
} else {
return SignalStore.wallpaper().getWallpaper();
}