@Override
 public void updateLayers(OsmandMapTileView mapView, MapActivity activity) {
   if (isActive()) {
     registerWidget(activity);
   } else {
     MapInfoLayer mapInfoLayer = activity.getMapLayers().getMapInfoLayer();
     if (mapInfoLayer != null && mapInfoLayer.getSideWidget(FPSTextInfoWidget.class) != null) {
       mapInfoLayer.removeSideWidget(mapInfoLayer.getSideWidget(FPSTextInfoWidget.class));
       mapInfoLayer.recreateControls();
     }
   }
 }
 @Override
 public void updateLayers(OsmandMapTileView mapView, MapActivity activity) {
   if (isActive()) {
     if (monitoringControl == null) {
       registerWidget(activity);
     }
   } else {
     if (monitoringControl != null) {
       MapInfoLayer layer = activity.getMapLayers().getMapInfoLayer();
       layer.removeSideWidget(monitoringControl);
       layer.recreateControls();
       monitoringControl = null;
     }
   }
 }