mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-04 16:16:33 +02:00
Check if setup tab is visible
This commit is contained in:
@@ -352,9 +352,12 @@ public class FragmentSetup extends FragmentBase {
|
||||
|
||||
@Override
|
||||
public boolean onBackPressed() {
|
||||
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
|
||||
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED) &&
|
||||
((FragmentOptions) getParentFragment()).isVisible(0)) {
|
||||
onExit();
|
||||
return true;
|
||||
return true;
|
||||
} else
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user