mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-25 17:27:00 +00:00
Small behavior improvement
This commit is contained in:
parent
ff7d6d05b1
commit
8c7dd5dc3e
1 changed files with 6 additions and 2 deletions
|
@ -1438,13 +1438,17 @@ public class FragmentAccount extends FragmentBase {
|
||||||
break;
|
break;
|
||||||
case REQUEST_SAVE:
|
case REQUEST_SAVE:
|
||||||
if (resultCode == RESULT_OK) {
|
if (resultCode == RESULT_OK) {
|
||||||
|
final boolean save = (btnSave.getVisibility() == View.VISIBLE);
|
||||||
new Handler().post(new Runnable() {
|
new Handler().post(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
scroll.smoothScrollTo(0, btnSave.getBottom());
|
scroll.smoothScrollTo(0, (save ? btnSave : btnCheck).getBottom());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
onSave(false);
|
if (save)
|
||||||
|
onSave(false);
|
||||||
|
else
|
||||||
|
onCheck();
|
||||||
} else if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
|
} else if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
|
||||||
getParentFragmentManager().popBackStack();
|
getParentFragmentManager().popBackStack();
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue