From eaba8b68421fd6527ede00e789bea7e91c6a5ad5 Mon Sep 17 00:00:00 2001 From: tom79 Date: Mon, 10 Jun 2019 18:38:44 +0200 Subject: [PATCH] Apply the fix on click --- .../android/drawers/StatusListAdapter.java | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/app/fedilab/android/drawers/StatusListAdapter.java b/app/src/main/java/app/fedilab/android/drawers/StatusListAdapter.java index 7814963e6..ab8f74560 100644 --- a/app/src/main/java/app/fedilab/android/drawers/StatusListAdapter.java +++ b/app/src/main/java/app/fedilab/android/drawers/StatusListAdapter.java @@ -1025,35 +1025,42 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct holder.custom_feature_translate.setOnClickListener(view -> { translateToot(status); - holder.fedilab_features_panel.setVisibility(View.GONE); + status.setCustomFeaturesDisplayed(false); + notifyStatusChanged(status); }); holder.custom_feature_bookmark.setOnClickListener(view -> { bookmark(status); - holder.fedilab_features_panel.setVisibility(View.GONE); + status.setCustomFeaturesDisplayed(false); + notifyStatusChanged(status); }); holder.custom_feature_bookmark.setOnLongClickListener(view -> { CrossActions.doCrossBookmark(context, status, statusListAdapter); - holder.fedilab_features_panel.setVisibility(View.GONE); + status.setCustomFeaturesDisplayed(false); + notifyStatusChanged(status); return false; }); holder.custom_feature_timed_mute.setOnClickListener(view -> { timedMuteAction(status); - holder.fedilab_features_panel.setVisibility(View.GONE); + status.setCustomFeaturesDisplayed(false); + notifyStatusChanged(status); }); holder.custom_feature_schedule.setOnClickListener(view -> { scheduleBoost(status); - holder.fedilab_features_panel.setVisibility(View.GONE); + status.setCustomFeaturesDisplayed(false); + notifyStatusChanged(status); }); holder.custom_feature_mention.setOnClickListener(view -> { mention(status); - holder.fedilab_features_panel.setVisibility(View.GONE); + status.setCustomFeaturesDisplayed(false); + notifyStatusChanged(status); }); holder.custom_feature_cache.setOnClickListener(view -> { new ManageCachedStatusAsyncTask(context, status.getId(), StatusListAdapter.this).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); - holder.fedilab_features_panel.setVisibility(View.GONE); + status.setCustomFeaturesDisplayed(false); + notifyStatusChanged(status); }); }