Small improvement

This commit is contained in:
M66B 2020-04-11 09:36:42 +02:00
parent 8f95ab649f
commit d876d0ddc2
1 changed files with 4 additions and 2 deletions

View File

@ -4551,9 +4551,11 @@ public class FragmentCompose extends FragmentBase {
@Override
public boolean onBackPressed() {
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED)) {
onExit();
return true;
return true;
} else
return false;
}
};