forked from mirrors/Fedilab
Fix Text cleared when adding a media
This commit is contained in:
parent
554335aa6e
commit
b52ab37aed
2 changed files with 3 additions and 2 deletions
|
@ -334,7 +334,7 @@ public class ComposeAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder
|
||||||
holder.binding.content.setSelection(statusDraft.cursorPosition); //Put cursor at the end
|
holder.binding.content.setSelection(statusDraft.cursorPosition); //Put cursor at the end
|
||||||
buttonVisibility(holder);
|
buttonVisibility(holder);
|
||||||
});
|
});
|
||||||
} else if (mentionedAccount != null) {
|
} else if (mentionedAccount != null && statusDraft.text == null) {
|
||||||
final SharedPreferences sharedpreferences = PreferenceManager.getDefaultSharedPreferences(context);
|
final SharedPreferences sharedpreferences = PreferenceManager.getDefaultSharedPreferences(context);
|
||||||
boolean capitalize = sharedpreferences.getBoolean(context.getString(R.string.SET_CAPITALIZE), true);
|
boolean capitalize = sharedpreferences.getBoolean(context.getString(R.string.SET_CAPITALIZE), true);
|
||||||
if (capitalize) {
|
if (capitalize) {
|
||||||
|
@ -537,6 +537,7 @@ public class ComposeAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder
|
||||||
if (holder.binding.content.getSelectionStart() > 0 && holder.getLayoutPosition() >= 0) {
|
if (holder.binding.content.getSelectionStart() > 0 && holder.getLayoutPosition() >= 0) {
|
||||||
statusList.get(holder.getLayoutPosition()).cursorPosition = holder.binding.content.getSelectionStart();
|
statusList.get(holder.getLayoutPosition()).cursorPosition = holder.binding.content.getSelectionStart();
|
||||||
}
|
}
|
||||||
|
|
||||||
//Copy/past
|
//Copy/past
|
||||||
int max_car = MastodonHelper.getInstanceMaxChars(context);
|
int max_car = MastodonHelper.getInstanceMaxChars(context);
|
||||||
if (currentLength > max_car) {
|
if (currentLength > max_car) {
|
||||||
|
|
|
@ -5,5 +5,5 @@ Changed:
|
||||||
- Cross actions with two accounts display a dialog
|
- Cross actions with two accounts display a dialog
|
||||||
|
|
||||||
Fixed:
|
Fixed:
|
||||||
|
- Text cleared when adding a media
|
||||||
- Fix crashes
|
- Fix crashes
|
Loading…
Reference in a new issue