Commit b52ab37a authored by Thomas's avatar Thomas
Browse files

Fix Text cleared when adding a media

parent 554335aa
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -334,7 +334,7 @@ public class ComposeAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder
                holder.binding.content.setSelection(statusDraft.cursorPosition); //Put cursor at the end
                buttonVisibility(holder);
            });
        } else if (mentionedAccount != null) {
        } else if (mentionedAccount != null && statusDraft.text == null) {
            final SharedPreferences sharedpreferences = PreferenceManager.getDefaultSharedPreferences(context);
            boolean capitalize = sharedpreferences.getBoolean(context.getString(R.string.SET_CAPITALIZE), true);
            if (capitalize) {
@@ -537,6 +537,7 @@ public class ComposeAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder
                if (holder.binding.content.getSelectionStart() > 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) {
+1 −1
Original line number Diff line number Diff line
@@ -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