mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
MapDataManager: don't update whole list if no point was added (after onResume)
This commit is contained in:
@@ -285,7 +285,12 @@ public class MapDataManager implements DcEventCenter.DcEventDelegate, GenerateIn
|
||||
contactMapMetadata = addContactMapSource(contactId);
|
||||
}
|
||||
|
||||
LinkedList<Feature> sortedPointFeatures = new LinkedList<>();
|
||||
LinkedList<Feature> sortedPointFeatures = featureCollections.get(contactMapMetadata.getMarkerFeatureCollection());
|
||||
if (sortedPointFeatures != null && sortedPointFeatures.size() == count) {
|
||||
return;
|
||||
} else {
|
||||
sortedPointFeatures = new LinkedList<>();
|
||||
}
|
||||
LinkedList<Feature> sortedLineFeatures = new LinkedList<>();
|
||||
|
||||
for (int i = count - 1; i >= 0; i--) {
|
||||
|
||||
Reference in New Issue
Block a user