diff --git a/app/src/main/java/app/fedilab/android/ui/drawer/StatusAdapter.java b/app/src/main/java/app/fedilab/android/ui/drawer/StatusAdapter.java index b2837cef..eace2a99 100644 --- a/app/src/main/java/app/fedilab/android/ui/drawer/StatusAdapter.java +++ b/app/src/main/java/app/fedilab/android/ui/drawer/StatusAdapter.java @@ -325,14 +325,15 @@ public class StatusAdapter extends RecyclerView.Adapter boolean long_press_media = sharedpreferences.getBoolean(context.getString(R.string.SET_LONG_PRESS_STORE_MEDIA), false); if (MainActivity.currentAccount != null && MainActivity.currentAccount.api == Account.API.PLEROMA) { - holder.binding.layoutReactions.getRoot().setVisibility(View.VISIBLE); if (status.pleroma != null && status.pleroma.emoji_reactions != null && status.pleroma.emoji_reactions.size() > 0) { + holder.binding.layoutReactions.getRoot().setVisibility(View.VISIBLE); ReactionAdapter reactionAdapter = new ReactionAdapter(status.id, status.pleroma.emoji_reactions); holder.binding.layoutReactions.reactionsView.setAdapter(reactionAdapter); LinearLayoutManager layoutManager = new LinearLayoutManager(context, LinearLayoutManager.HORIZONTAL, false); holder.binding.layoutReactions.reactionsView.setLayoutManager(layoutManager); } else { + holder.binding.layoutReactions.getRoot().setVisibility(View.GONE); holder.binding.layoutReactions.reactionsView.setAdapter(null); } holder.binding.statusEmoji.setOnClickListener(v -> { @@ -455,9 +456,14 @@ public class StatusAdapter extends RecyclerView.Adapter theme_text_header_2_line = sharedpreferences.getInt("theme_text_header_2_line", -1); } - + if (MainActivity.currentAccount != null && MainActivity.currentAccount.api == Account.API.PLEROMA) { + holder.binding.statusAddCustomEmoji.setVisibility(View.VISIBLE); + holder.binding.statusEmoji.setVisibility(View.VISIBLE); + } if (theme_icons_color != -1) { Helper.changeDrawableColor(context, holder.binding.actionButtonReply, theme_icons_color); + Helper.changeDrawableColor(context, holder.binding.statusAddCustomEmoji, theme_icons_color); + Helper.changeDrawableColor(context, holder.binding.statusEmoji, theme_icons_color); Helper.changeDrawableColor(context, holder.binding.actionButtonMore, theme_icons_color); Helper.changeDrawableColor(context, R.drawable.ic_baseline_star_24, theme_icons_color); Helper.changeDrawableColor(context, R.drawable.ic_repeat, theme_icons_color); diff --git a/app/src/main/res/drawable/ic_baseline_add_reaction_24.xml b/app/src/main/res/drawable/ic_baseline_add_reaction_24.xml index 5872363d..9cd44366 100644 --- a/app/src/main/res/drawable/ic_baseline_add_reaction_24.xml +++ b/app/src/main/res/drawable/ic_baseline_add_reaction_24.xml @@ -1,7 +1,7 @@ + + + android:src="@drawable/ic_baseline_emoji_emotions_24" /> + android:src="@drawable/ic_baseline_add_reaction_24" /> - diff --git a/app/src/main/res/layout/layout_reactions.xml b/app/src/main/res/layout/layout_reactions.xml index 8ebc9c59..a57bcc64 100644 --- a/app/src/main/res/layout/layout_reactions.xml +++ b/app/src/main/res/layout/layout_reactions.xml @@ -3,11 +3,12 @@ android:id="@+id/status_reactions" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_gravity="center" + android:layout_marginTop="10dp" - android:layout_marginBottom="10dp" + android:layout_marginStart="48dp" + android:layout_marginEnd="6dp" android:orientation="horizontal" - android:paddingBottom="10dp"> + android:layout_marginBottom="5dp">