MapWithAILayer: Don't allow MapWithAI data to be merged into a OSM data layer.

Signed-off-by: Taylor Smock <tsmock@fb.com>
pull/1/head
Taylor Smock 2020-12-22 16:16:59 -07:00
rodzic 8955a871a6
commit 01f5f51a6f
1 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -365,4 +365,11 @@ public class MapWithAILayer extends OsmDataLayer implements ActiveLayerChangeLis
// Consider a deletion a "successful" save.
return Files.deleteIfExists(file.toPath());
}
@Override
public boolean isMergable(final Layer other) {
// Don't allow this layer to be merged down
return other instanceof MapWithAILayer;
}
}