mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 04:53:36 +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);
|
||||
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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user