Fix for sending wrong location

This commit is contained in:
Ruslan Boitsov 2020-05-02 11:27:42 +02:00 committed by GitHub
parent 83440a5cb1
commit 222d194b8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1467,7 +1467,7 @@ public class ChatAttachAlertLocationLayout extends ChatAttachAlert.AttachAlertLa
mapTypeButton.setTranslationY(translationY);
searchAreaButton.setTranslation(translationY);
locationButton.setTranslationY(-clipSize);
markerImageView.setTranslationY(markerTop = (mapHeight - clipSize) / 2 - AndroidUtilities.dp(48) + trY);
markerImageView.setTranslationY(markerTop = (mapHeight) / 2 - AndroidUtilities.dp(48) + trY);
if (prevClipSize != clipSize) {
GeoPoint location;
if (lastPressedMarker != null) {
@ -1734,4 +1734,4 @@ public class ChatAttachAlertLocationLayout extends ChatAttachAlert.AttachAlertLa
return themeDescriptions;
}
}
}