app/internal/window: [Android] ignore setCursor when not supported

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2020-12-04 12:13:07 +01:00
parent 003bcc7995
commit 7ef591d0ec
+3
View File
@@ -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);
}