LocationPickerActivity.java: fix map centering bug when editing location on already uploaded media

Before this commit, when the user pressed the edit location icon on media which was already uploaded,
the map would center on the device's current GPS location.

After this commit, pressing the same edit location icon will now center the map on the location metadata.
This is done by checking the activity string to see if the media is already uploaded. If so, a method
is called to center the map on the media's location metadata.
This commit is contained in:
Jason Whitmore 2024-09-13 16:02:51 -07:00
parent 102fbfbeea
commit 1d2398b30b

View file

@ -319,7 +319,7 @@ public class LocationPickerActivity extends BaseActivity implements
requestLocationPermissions(); requestLocationPermissions();
//If EXIF data is available, move map to EXIF location. //If EXIF data is available, move map to EXIF location.
if(activity.equals("UploadActivity")){ if(activity.equals("UploadActivity") || activity.equals("MediaActivity")){
moveMapToMediaLocation(); moveMapToMediaLocation();
} else { } else {
//EXIF data is not available. Move map to device GPS location. //EXIF data is not available. Move map to device GPS location.