mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-22 02:36:55 +00:00
Color nav bar to match unmute in release note channel.
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user