set MapView clickable/focusable by default

This commit is contained in:
Hannes Janetzek
2013-10-27 17:00:21 +01:00
parent bb02b5d461
commit e33a863d3b

View File

@@ -98,6 +98,8 @@ public class MapView extends RelativeLayout {
GLAdapter.g = new AndroidGL();
this.setWillNotDraw(true);
this.setClickable(true);
this.setFocusable(true);
DisplayMetrics metrics = getResources().getDisplayMetrics();
CanvasAdapter.dpi = (int) Math.max(metrics.xdpi, metrics.ydpi);