mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-15 07:28:30 +00:00
Fixes for reaction overlay.
This commit is contained in:
committed by
Greyson Parrelli
parent
07d270a82d
commit
6e0bfa2cee
@@ -203,7 +203,6 @@ public final class ConversationReactionOverlay extends FrameLayout {
|
||||
setVisibility(View.INVISIBLE);
|
||||
|
||||
this.activity = activity;
|
||||
updateSystemUiOnShow(activity);
|
||||
|
||||
ViewKt.doOnLayout(this, v -> {
|
||||
showAfterLayout(activity, conversationMessage, lastSeenDownPoint, isMessageOnLeft);
|
||||
@@ -424,22 +423,6 @@ public final class ConversationReactionOverlay extends FrameLayout {
|
||||
}
|
||||
}
|
||||
|
||||
private void updateSystemUiOnShow(@NonNull Activity activity) {
|
||||
Window window = activity.getWindow();
|
||||
int barColor = ContextCompat.getColor(getContext(), R.color.conversation_item_selected_system_ui);
|
||||
|
||||
originalStatusBarColor = window.getStatusBarColor();
|
||||
WindowUtil.setStatusBarColor(window, barColor);
|
||||
|
||||
originalNavigationBarColor = window.getNavigationBarColor();
|
||||
WindowUtil.setNavigationBarColor(activity, barColor);
|
||||
|
||||
if (!ThemeUtil.isDarkTheme(getContext())) {
|
||||
WindowUtil.clearLightStatusBar(window);
|
||||
WindowUtil.clearLightNavigationBar(window);
|
||||
}
|
||||
}
|
||||
|
||||
public void hide() {
|
||||
hideInternal(onHideListener);
|
||||
}
|
||||
|
||||
@@ -137,7 +137,6 @@
|
||||
<color name="reactions_pill_selected_text_color">@color/core_grey_15</color>
|
||||
<color name="reactions_screen_dark_shade_color">@color/transparent_black_70</color>
|
||||
<color name="reactions_screen_light_shade_color">#df5e5e5e</color>
|
||||
<color name="reactions_status_bar_shade">#191919</color>
|
||||
|
||||
<color name="recipient_bottom_sheet_button_strip_background_color">@color/signal_colorSecondaryContainer</color>
|
||||
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="conversation_item_selected_system_ui">@color/reactions_status_bar_shade</color>
|
||||
</resources>
|
||||
@@ -41,7 +41,6 @@
|
||||
|
||||
<color name="conversation_compose_divider">#32000000</color>
|
||||
|
||||
<color name="conversation_item_selected_system_ui">#4d4d4d</color>
|
||||
<color name="touch_highlight">#400099cc</color>
|
||||
<color name="touch_highlight_material3">#14E2E1E5</color>
|
||||
|
||||
|
||||
@@ -138,9 +138,8 @@
|
||||
|
||||
<color name="reactions_pill_text_color">@color/signal_colorOnSurfaceVariant</color>
|
||||
<color name="reactions_pill_selected_text_color">@color/core_grey_75</color>
|
||||
<color name="reactions_screen_dark_shade_color">@color/transparent_black_70</color>
|
||||
<color name="reactions_screen_light_shade_color">@color/transparent_white_87</color>
|
||||
<color name="reactions_status_bar_shade">#4d4d4d</color>
|
||||
<color name="reactions_screen_dark_shade_color">#6670747D</color>
|
||||
<color name="reactions_screen_light_shade_color">@color/transparent_white_20</color>
|
||||
<color name="reactions_overlay_any_emoji_background">@color/signal_colorSurfaceVariant_16_no_alpha</color>
|
||||
<color name="reactions_overlay_any_emoji_foreground">@color/signal_colorOnSurfaceVariant</color>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user