1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-20 19:23:22 +08:00

Fix mobile release dialog obstructed by the software keyboard

This commit is contained in:
Salman Alshamrani 2025-01-03 21:36:00 -05:00
parent b4698851a3
commit 3fc86f60ee

View File

@ -297,15 +297,6 @@ namespace osu.Game.Screens.Menu
private bool onLogoClick(Func<bool> originalAction)
{
if (!api.IsLoggedIn || api.State.Value == APIState.RequiresSecondFactorAuth)
{
if (!loginDisplayed.Value)
{
Scheduler.AddDelayed(() => login?.Show(), 500);
loginDisplayed.Value = true;
}
}
if (showMobileDisclaimer.Value)
{
mobileDisclaimerSchedule?.Cancel();
@ -314,13 +305,28 @@ namespace osu.Game.Screens.Menu
dialogOverlay.Push(new MobileDisclaimerDialog(() =>
{
showMobileDisclaimer.Value = false;
displayLoginIfApplicable();
}));
}, 500);
}
else
displayLoginIfApplicable();
return originalAction.Invoke();
}
private void displayLoginIfApplicable()
{
if (!api.IsLoggedIn || api.State.Value == APIState.RequiresSecondFactorAuth)
{
if (!loginDisplayed.Value)
{
Scheduler.AddDelayed(() => login?.Show(), 500);
loginDisplayed.Value = true;
}
}
}
protected override void LogoSuspending(OsuLogo logo)
{
var seq = logo.FadeOut(300, Easing.InSine)