From b52ab37aede6402b53c38a9667383bcc8843c4ca Mon Sep 17 00:00:00 2001 From: Thomas Date: Fri, 27 Jan 2023 12:10:21 +0100 Subject: [PATCH] Fix Text cleared when adding a media --- .../app/fedilab/android/mastodon/ui/drawer/ComposeAdapter.java | 3 ++- src/fdroid/fastlane/metadata/android/en/changelogs/472.txt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/ComposeAdapter.java b/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/ComposeAdapter.java index 0372043b..1bf483d6 100644 --- a/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/ComposeAdapter.java +++ b/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/ComposeAdapter.java @@ -334,7 +334,7 @@ public class ComposeAdapter extends RecyclerView.Adapter 0 && holder.getLayoutPosition() >= 0) { statusList.get(holder.getLayoutPosition()).cursorPosition = holder.binding.content.getSelectionStart(); } + //Copy/past int max_car = MastodonHelper.getInstanceMaxChars(context); if (currentLength > max_car) { diff --git a/src/fdroid/fastlane/metadata/android/en/changelogs/472.txt b/src/fdroid/fastlane/metadata/android/en/changelogs/472.txt index 4d5420e3..41188591 100644 --- a/src/fdroid/fastlane/metadata/android/en/changelogs/472.txt +++ b/src/fdroid/fastlane/metadata/android/en/changelogs/472.txt @@ -5,5 +5,5 @@ Changed: - Cross actions with two accounts display a dialog Fixed: - +- Text cleared when adding a media - Fix crashes \ No newline at end of file