kopia lustrzana https://github.com/ryukoposting/Signal-Android
Fix invite banner background color in wallpaper conversations.
rodzic
57151145d3
commit
a456c3fa32
|
@ -2170,7 +2170,9 @@ public class ConversationParentFragment extends Fragment
|
|||
int toolbarTextAndIconColor = getResources().getColor(R.color.signal_colorNeutralInverse);
|
||||
toolbar.setTitleTextColor(toolbarTextAndIconColor);
|
||||
setToolbarActionItemTint(toolbar, toolbarTextAndIconColor);
|
||||
WindowUtil.setNavigationBarColor(requireActivity(), getResources().getColor(R.color.conversation_navigation_wallpaper));
|
||||
if (!smsExportStub.resolved()) {
|
||||
WindowUtil.setNavigationBarColor(requireActivity(), getResources().getColor(R.color.conversation_navigation_wallpaper));
|
||||
}
|
||||
} else {
|
||||
wallpaper.setImageDrawable(null);
|
||||
wallpaperDim.setVisibility(View.GONE);
|
||||
|
@ -2183,7 +2185,7 @@ public class ConversationParentFragment extends Fragment
|
|||
int toolbarTextAndIconColor = getResources().getColor(R.color.signal_colorOnSurface);
|
||||
toolbar.setTitleTextColor(toolbarTextAndIconColor);
|
||||
setToolbarActionItemTint(toolbar, toolbarTextAndIconColor);
|
||||
if (!releaseChannelUnmute.resolved()) {
|
||||
if (!releaseChannelUnmute.resolved() && !smsExportStub.resolved()) {
|
||||
WindowUtil.setNavigationBarColor(requireActivity(), getResources().getColor(R.color.signal_colorBackground));
|
||||
}
|
||||
}
|
||||
|
@ -2733,6 +2735,10 @@ public class ConversationParentFragment extends Fragment
|
|||
smsExportStub.setVisibility(View.VISIBLE);
|
||||
registerButton.setVisibility(View.GONE);
|
||||
|
||||
int color = ContextCompat.getColor(requireContext(), recipient.hasWallpaper() ? R.color.wallpaper_bubble_color : R.color.signal_colorBackground);
|
||||
smsExportStub.get().setBackgroundColor(color);
|
||||
WindowUtil.setNavigationBarColor(requireActivity(), color);
|
||||
|
||||
TextView message = smsExportStub.get().findViewById(R.id.export_sms_message);
|
||||
MaterialButton actionButton = smsExportStub.get().findViewById(R.id.export_sms_button);
|
||||
boolean isPhase1 = SignalStore.misc().getSmsExportPhase() == SmsExportPhase.PHASE_1;
|
||||
|
|
Ładowanie…
Reference in New Issue