mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-06 12:34:24 +00:00
[android] Allow call to getHolder() in MapView
Signed-off-by: Andrei Shkrob <github@shkrob.dev>
This commit is contained in:
@@ -68,7 +68,7 @@ public class MapView extends SurfaceView
|
|||||||
{
|
{
|
||||||
super(context, attrs, defStyleAttr, defStyleRes);
|
super(context, attrs, defStyleAttr, defStyleRes);
|
||||||
mMap = new Map(DisplayType.Device);
|
mMap = new Map(DisplayType.Device);
|
||||||
super.getHolder().addCallback(new SurfaceHolderCallback());
|
getHolder().addCallback(new SurfaceHolderCallback());
|
||||||
}
|
}
|
||||||
|
|
||||||
public final void onDraw(@NonNull Canvas canvas)
|
public final void onDraw(@NonNull Canvas canvas)
|
||||||
@@ -116,12 +116,6 @@ public class MapView extends SurfaceView
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public final SurfaceHolder getHolder()
|
|
||||||
{
|
|
||||||
throw new UnsupportedOperationException("Not supported.");
|
|
||||||
}
|
|
||||||
|
|
||||||
@NonNull
|
@NonNull
|
||||||
Map getMap()
|
Map getMap()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user