mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-16 08:05:34 -04:00
Workaround: The add account button always works from the main menu
This commit is contained in:
parent
0c080aad19
commit
e53a30c77e
@ -81,10 +81,10 @@ public class LauncherActivity extends BaseActivity {
|
||||
|
||||
/* Listener for the auth method selection screen */
|
||||
private final ExtraListener<Boolean> mSelectAuthMethod = (key, value) -> {
|
||||
if(isFragmentVisible(SelectAuthFragment.TAG)
|
||||
|| isFragmentVisible(LocalLoginFragment.TAG)
|
||||
|| isFragmentVisible(MicrosoftLoginFragment.TAG)
|
||||
) return false;
|
||||
Fragment fragment = getSupportFragmentManager().findFragmentById(mFragmentView.getId());
|
||||
// Allow starting the add account only from the main menu, should it be moved to fragment itself ?
|
||||
if(!(fragment instanceof MainMenuFragment)) return false;
|
||||
|
||||
Tools.swapFragment(this, SelectAuthFragment.class, SelectAuthFragment.TAG, true, null);
|
||||
return false;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user