mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 12:44:42 +00:00
Prevent compose scroll
This commit is contained in:
parent
074a2d953e
commit
213a5f944e
1 changed files with 5 additions and 3 deletions
|
@ -5075,9 +5075,9 @@ public class FragmentCompose extends FragmentBase {
|
|||
@Override
|
||||
protected void onExecuted(Bundle args, Spanned[] text) {
|
||||
etBody.setText(text[0]);
|
||||
if (scroll && text[0] != null)
|
||||
etBody.setSelection(text[0].length());
|
||||
else
|
||||
if (scroll)
|
||||
etBody.setSelection(text[0] == null ? 0 : text[0].length());
|
||||
else if (state != State.LOADED)
|
||||
etBody.setSelection(0);
|
||||
grpBody.setVisibility(View.VISIBLE);
|
||||
|
||||
|
@ -5097,6 +5097,8 @@ public class FragmentCompose extends FragmentBase {
|
|||
|
||||
setBodyPadding();
|
||||
|
||||
if (state == State.LOADED)
|
||||
return;
|
||||
state = State.LOADED;
|
||||
|
||||
final Context context = getContext();
|
||||
|
|
Loading…
Reference in a new issue