mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 18:35:34 +00:00
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) {
|
private void setCursor(Context ctx, int id) {
|
||||||
|
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.N) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
PointerIcon pointerIcon = PointerIcon.getSystemIcon(ctx, id);
|
PointerIcon pointerIcon = PointerIcon.getSystemIcon(ctx, id);
|
||||||
GioView.this.setPointerIcon(pointerIcon);
|
GioView.this.setPointerIcon(pointerIcon);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user