Skip to content

Commit 03934bc

Browse files
committed
Fix android build error
1 parent 1b8ec31 commit 03934bc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

osu.Framework.Android/AndroidGameWindow.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ public override void Create()
2323

2424
SafeAreaPadding.BindTo(AndroidGameActivity.Surface.SafeAreaPadding);
2525

26-
// Android SDL doesn't receive these events at start, so it never receives focus until it comes back from background
2726
((BindableBool)CursorInWindow).Value = true;
28-
Focused = true;
27+
28+
// Android SDL doesn't focus events at start, so it never receives focus until it comes back from background
29+
UpdateActiveState();
2930
}
3031
}
3132
}

0 commit comments

Comments
 (0)