Merge pull request #1113 from deltachat/fix_map_after_androidx_migration

fix map
This commit is contained in:
björn petersen
2019-11-11 16:08:43 +01:00
committed by GitHub
2 changed files with 2 additions and 5 deletions
+1 -1
View File
@@ -7,7 +7,7 @@
android:id="@+id/bottom_sheet"
app:behavior_hideable="false"
app:behavior_peekHeight="35dp"
app:layout_behavior="android.support.design.widget.BottomSheetBehavior"
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior"
android:background="@color/transparent"
>
@@ -61,15 +61,12 @@ public class DataCollector {
long startTimestamp,
long endTimestamp) {
DcArray locations = dcContext.getLocations(chatId, contactId, startTimestamp, endTimestamp);
int count = locations.getCnt();
if (count == 0) {
return;
}
MapSource contactMapMetadata = contactMapSources.get(contactId);
if (contactMapMetadata == null) {
contactMapMetadata = addContactMapSource(contactMapSources, contactId);
}
int count = locations.getCnt();
LinkedList<Feature> sortedPointFeatures = featureCollections.get(contactMapMetadata.getMarkerFeatureCollection());
if (sortedPointFeatures != null && sortedPointFeatures.size() == count) {