[android] Allow call to getHolder() in MapView

Signed-off-by: Andrei Shkrob <github@shkrob.dev>
This commit is contained in:
Andrei Shkrob
2025-09-23 18:25:50 +02:00
committed by x7z4w
parent e73c37a5dd
commit 1947a32007

View File

@@ -68,7 +68,7 @@ public class MapView extends SurfaceView
{
super(context, attrs, defStyleAttr, defStyleRes);
mMap = new Map(DisplayType.Device);
super.getHolder().addCallback(new SurfaceHolderCallback());
getHolder().addCallback(new SurfaceHolderCallback());
}
public final void onDraw(@NonNull Canvas canvas)
@@ -116,12 +116,6 @@ public class MapView extends SurfaceView
return false;
}
@Override
public final SurfaceHolder getHolder()
{
throw new UnsupportedOperationException("Not supported.");
}
@NonNull
Map getMap()
{