From 17f94657d8270d4f5a7e982e2973cb34d025abda Mon Sep 17 00:00:00 2001 From: Thodoris Tyrovouzis Date: Sat, 4 Apr 2020 19:59:50 +0300 Subject: [PATCH] hide inbox FAB and quote and delete PM overflow menu actions --- .../java/gr/thmmy/mthmmy/activities/inbox/InboxAdapter.java | 2 ++ app/src/main/res/layout/activity_inbox.xml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/src/main/java/gr/thmmy/mthmmy/activities/inbox/InboxAdapter.java b/app/src/main/java/gr/thmmy/mthmmy/activities/inbox/InboxAdapter.java index b36ac448..504d78c7 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/activities/inbox/InboxAdapter.java +++ b/app/src/main/java/gr/thmmy/mthmmy/activities/inbox/InboxAdapter.java @@ -224,6 +224,7 @@ public class InboxAdapter extends RecyclerView.Adapter popUp.setFocusable(true); TextView quoteButton = popupContent.findViewById(R.id.pm_quote_button); + quoteButton.setVisibility(View.GONE); // TODO Drawable quoteDrawable = AppCompatResources.getDrawable(context, R.drawable.ic_format_quote); quoteButton.setCompoundDrawablesRelativeWithIntrinsicBounds(quoteDrawable, null, null, null); quoteButton.setOnClickListener(v -> { @@ -245,6 +246,7 @@ public class InboxAdapter extends RecyclerView.Adapter TextView deletePostButton = popupContent.findViewById(R.id.delete_post); Drawable deleteStartDrawable = AppCompatResources.getDrawable(context, R.drawable.ic_delete_white_24dp); + deletePostButton.setVisibility(View.GONE); //TODO deletePostButton.setCompoundDrawablesRelativeWithIntrinsicBounds(deleteStartDrawable, null, null, null); popupContent.findViewById(R.id.delete_post).setOnClickListener(v -> { new AlertDialog.Builder(holder.overflowButton.getContext()) diff --git a/app/src/main/res/layout/activity_inbox.xml b/app/src/main/res/layout/activity_inbox.xml index 860b18a2..69304bd3 100644 --- a/app/src/main/res/layout/activity_inbox.xml +++ b/app/src/main/res/layout/activity_inbox.xml @@ -57,6 +57,7 @@ app:elevation="8dp" app:layout_behavior="gr.thmmy.mthmmy.utils.ScrollAwareLinearBehavior"/> + \ No newline at end of file