mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Apply review suggestions.
This commit is contained in:
@ -17,14 +17,14 @@ namespace osu.Android
|
||||
private void load(OsuGame game)
|
||||
{
|
||||
localUserPlaying = game.LocalUserPlaying.GetBoundCopy();
|
||||
localUserPlaying.BindValueChanged(_ => updateLock());
|
||||
localUserPlaying.BindValueChanged(userPlaying => updateLock(userPlaying));
|
||||
}
|
||||
|
||||
private void updateLock()
|
||||
private void updateLock(ValueChangedEvent<bool> userPlaying)
|
||||
{
|
||||
OsuGameActivity.Activity.RunOnUiThread(() =>
|
||||
{
|
||||
OsuGameActivity.Activity.RequestedOrientation = localUserPlaying.Value ? ScreenOrientation.Locked : ScreenOrientation.FullUser;
|
||||
OsuGameActivity.Activity.RequestedOrientation = userPlaying.NewValue ? ScreenOrientation.Locked : ScreenOrientation.FullUser;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user