Subscribe to event handler instead.

This commit is contained in:
Lucas A
2020-10-18 19:42:05 +02:00
parent b60dfc55b6
commit 9cd595800a

View File

@ -17,7 +17,7 @@ namespace osu.Android
private void load(OsuGame game) private void load(OsuGame game)
{ {
localUserPlaying = game.LocalUserPlaying.GetBoundCopy(); localUserPlaying = game.LocalUserPlaying.GetBoundCopy();
localUserPlaying.BindValueChanged(userPlaying => updateLock(userPlaying)); localUserPlaying.ValueChanged += updateLock;
} }
private void updateLock(ValueChangedEvent<bool> userPlaying) private void updateLock(ValueChangedEvent<bool> userPlaying)