mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
Merge pull request #1113 from deltachat/fix_map_after_androidx_migration
fix map
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user