mirror of
https://github.com/ppy/osu
synced 2025-01-18 03:50:57 +00:00
Fix android build failure due to enum rename
This commit is contained in:
parent
24d6ea5444
commit
a41c6dce04
@ -12,7 +12,7 @@ namespace osu.Android
|
|||||||
{
|
{
|
||||||
public partial class GameplayScreenRotationLocker : Component
|
public partial class GameplayScreenRotationLocker : Component
|
||||||
{
|
{
|
||||||
private IBindable<LocalUserPlayingStates> localUserPlaying = null!;
|
private IBindable<LocalUserPlayingState> localUserPlaying = null!;
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
private OsuGameActivity gameActivity { get; set; } = null!;
|
private OsuGameActivity gameActivity { get; set; } = null!;
|
||||||
@ -24,11 +24,11 @@ namespace osu.Android
|
|||||||
localUserPlaying.BindValueChanged(updateLock, true);
|
localUserPlaying.BindValueChanged(updateLock, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateLock(ValueChangedEvent<LocalUserPlayingStates> userPlaying)
|
private void updateLock(ValueChangedEvent<LocalUserPlayingState> userPlaying)
|
||||||
{
|
{
|
||||||
gameActivity.RunOnUiThread(() =>
|
gameActivity.RunOnUiThread(() =>
|
||||||
{
|
{
|
||||||
gameActivity.RequestedOrientation = userPlaying.NewValue != LocalUserPlayingStates.NotPlaying ? ScreenOrientation.Locked : gameActivity.DefaultOrientation;
|
gameActivity.RequestedOrientation = userPlaying.NewValue != LocalUserPlayingState.NotPlaying ? ScreenOrientation.Locked : gameActivity.DefaultOrientation;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user