From 4b1897921abeedc2fcc39197063eeaff2a66cfe6 Mon Sep 17 00:00:00 2001 From: Thomas Date: Thu, 29 Dec 2022 14:28:35 +0100 Subject: [PATCH] Fix spoiler with media --- .../java/app/fedilab/android/client/entities/api/Status.java | 2 +- .../main/java/app/fedilab/android/ui/drawer/ComposeAdapter.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/app/fedilab/android/client/entities/api/Status.java b/app/src/main/java/app/fedilab/android/client/entities/api/Status.java index 585eccec..222c393a 100644 --- a/app/src/main/java/app/fedilab/android/client/entities/api/Status.java +++ b/app/src/main/java/app/fedilab/android/client/entities/api/Status.java @@ -111,7 +111,7 @@ public class Status implements Serializable, Cloneable { public transient boolean setCursorToEnd = false; public transient int cursorPosition = 0; public transient boolean submitted = false; - public transient boolean spoilerChecked = false; + public boolean spoilerChecked = false; public Filter filteredByApp; public transient Spannable contentSpan; public transient Spannable contentSpoilerSpan; diff --git a/app/src/main/java/app/fedilab/android/ui/drawer/ComposeAdapter.java b/app/src/main/java/app/fedilab/android/ui/drawer/ComposeAdapter.java index 332bb58e..f635383b 100644 --- a/app/src/main/java/app/fedilab/android/ui/drawer/ComposeAdapter.java +++ b/app/src/main/java/app/fedilab/android/ui/drawer/ComposeAdapter.java @@ -1414,6 +1414,7 @@ public class ComposeAdapter extends RecyclerView.Adapter { if (holder.binding.contentSpoiler.getVisibility() == View.VISIBLE) { statusDraft.spoilerChecked = false;