From 746defabbeaea6465b866800ad53c2db35c37dc2 Mon Sep 17 00:00:00 2001 From: shevelev Date: Sun, 14 Feb 2021 07:45:49 +0300 Subject: [PATCH] incorrect_my_location --- .../Components/ChatAttachAlertLocationLayout.java | 1 + readme bugs.txt | 15 +++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/TMessagesProj/src/main/java/org/telegram/ui/Components/ChatAttachAlertLocationLayout.java b/TMessagesProj/src/main/java/org/telegram/ui/Components/ChatAttachAlertLocationLayout.java index d17c102d6..26039cde7 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/Components/ChatAttachAlertLocationLayout.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/Components/ChatAttachAlertLocationLayout.java @@ -629,6 +629,7 @@ public class ChatAttachAlertLocationLayout extends ChatAttachAlert.AttachAlertLa locationButton.setTag(Theme.key_location_actionActiveIcon); adapter.setCustomLocation(null); userLocationMoved = false; + positionMarker(myLocation); showSearchPlacesButton(false); googleMap.animateCamera(CameraUpdateFactory.newLatLng(new LatLng(myLocation.getLatitude(), myLocation.getLongitude()))); if (searchedForCustomLocations) { diff --git a/readme bugs.txt b/readme bugs.txt index 8be351cf8..aa6d05e02 100644 --- a/readme bugs.txt +++ b/readme bugs.txt @@ -10,3 +10,18 @@ actual res. - And each of the open dialogs needs to be removed in turn expected res. - When executing a request, a single ProgressDialog opens + +========== commit: incorrect_my_location ============ +precondition +- The app is running +- The user is in a chat with the other person +test case +- Click on the "Attach to message" button ." +- Choose to share your geolocation +- On the geolocation selection screen, select a geolocation 4-5 kilometers away from the user's current location +- Then click on the "My geolocation" button ." +actual res. +- After clicking on the "My geolocation" button, the camera and marker on the map are animated, and the text "Send my current location" is shown to us" +- If you click on the "Send my current location" button during the animation, the geolocation of the position where the marker is currently located will be taken +expected res. +- If the button shows the text "Send my current location", you need to substitute the user's last known geolocation