kopia lustrzana https://github.com/ryukoposting/Signal-Android
Color nav bar to match unmute in release note channel.
rodzic
5164a44ee8
commit
756b926f6f
|
@ -2161,7 +2161,9 @@ public class ConversationParentFragment extends Fragment
|
||||||
int toolbarTextAndIconColor = getResources().getColor(R.color.signal_colorOnSurface);
|
int toolbarTextAndIconColor = getResources().getColor(R.color.signal_colorOnSurface);
|
||||||
toolbar.setTitleTextColor(toolbarTextAndIconColor);
|
toolbar.setTitleTextColor(toolbarTextAndIconColor);
|
||||||
setToolbarActionItemTint(toolbar, 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);
|
fragment.onWallpaperChanged(chatWallpaper);
|
||||||
messageRequestBottomView.setWallpaperEnabled(chatWallpaper != null);
|
messageRequestBottomView.setWallpaperEnabled(chatWallpaper != null);
|
||||||
|
@ -2719,8 +2721,10 @@ public class ConversationParentFragment extends Fragment
|
||||||
unmuteBanner.setVisibility(View.VISIBLE);
|
unmuteBanner.setVisibility(View.VISIBLE);
|
||||||
unmuteBanner.findViewById(R.id.conversation_activity_unmute_button)
|
unmuteBanner.findViewById(R.id.conversation_activity_unmute_button)
|
||||||
.setOnClickListener(v -> handleUnmuteNotifications());
|
.setOnClickListener(v -> handleUnmuteNotifications());
|
||||||
|
WindowUtil.setNavigationBarColor(requireActivity(), getResources().getColor(R.color.signal_colorSurface2));
|
||||||
} else if (releaseChannelUnmute.resolved()) {
|
} else if (releaseChannelUnmute.resolved()) {
|
||||||
releaseChannelUnmute.get().setVisibility(View.GONE);
|
releaseChannelUnmute.get().setVisibility(View.GONE);
|
||||||
|
WindowUtil.setNavigationBarColor(requireActivity(), getResources().getColor(R.color.signal_colorBackground));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
boolean inactivePushGroup = isPushGroupConversation() && !recipient.isActiveGroup();
|
boolean inactivePushGroup = isPushGroupConversation() && !recipient.isActiveGroup();
|
||||||
|
|
|
@ -1046,6 +1046,8 @@ public class Recipient {
|
||||||
public @Nullable ChatWallpaper getWallpaper() {
|
public @Nullable ChatWallpaper getWallpaper() {
|
||||||
if (wallpaper != null) {
|
if (wallpaper != null) {
|
||||||
return wallpaper;
|
return wallpaper;
|
||||||
|
} else if (isReleaseNotes()) {
|
||||||
|
return null;
|
||||||
} else {
|
} else {
|
||||||
return SignalStore.wallpaper().getWallpaper();
|
return SignalStore.wallpaper().getWallpaper();
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue