mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-31 23:03:54 +01:00
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:
parent
102fbfbeea
commit
1d2398b30b
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue