forked from joejulian/gio
app/internal/window: [Android] ignore setCursor when not supported
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -125,6 +125,9 @@ public final class GioView extends SurfaceView implements Choreographer.FrameCal
|
||||
}
|
||||
|
||||
private void setCursor(Context ctx, int id) {
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.N) {
|
||||
return;
|
||||
}
|
||||
PointerIcon pointerIcon = PointerIcon.getSystemIcon(ctx, id);
|
||||
GioView.this.setPointerIcon(pointerIcon);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user