mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Compare commits
No commits in common. "cca0a1185f998be90ee88a9aa026f49d7247ec1d" and "93b3e239d730a4a6210992651daada6d27616377" have entirely different histories.
cca0a1185f
...
93b3e239d7
2 changed files with 2 additions and 62 deletions
31
CHANGELOG.md
31
CHANGELOG.md
|
|
@ -1,36 +1,5 @@
|
||||||
# Wikimedia Commons for Android
|
# Wikimedia Commons for Android
|
||||||
|
|
||||||
## v5.2.0
|
|
||||||
|
|
||||||
v5.2.0 boasts several new functionalities like:
|
|
||||||
|
|
||||||
* A new refresh button lets you quickly reload the Nearby map
|
|
||||||
* Bookmarks now support categories
|
|
||||||
* Improved feedback and consistency in the user interface
|
|
||||||
* Bug fixes and performance improvements
|
|
||||||
|
|
||||||
### What's changed
|
|
||||||
* Implement "Refresh" button to clear the cache and reload the Nearby map.
|
|
||||||
* `CommonsApplication` migrate to kotlin & some lint fixes.
|
|
||||||
* Revert back to MainScope for database and UI updates and make database operations thread safe.
|
|
||||||
* Hide edit options for logged-out users in Explore screen.
|
|
||||||
* Introduced a button to delete the current folder in custom selector.
|
|
||||||
* Improve Unique File Name Search.
|
|
||||||
* Migration of several modules from Java to Kotlin.
|
|
||||||
* Fix modification on bottom sheet's data when coming from Nearby Banner and clicked on other pins.
|
|
||||||
* Bug fixes and enhancement of Achievements screen.
|
|
||||||
* Show where file is being used on Commons and other wikis.
|
|
||||||
* Migrate android.media.ExifInterface to androidx.exifinterface.media.ExifInterface as android.media.ExifInterface had security flaws on older devices.
|
|
||||||
* Make dialogs modal and always show the upload icon.
|
|
||||||
* Fix unintentional deletion of subfolders and non-images by custom selector.
|
|
||||||
* Bookmark categories.
|
|
||||||
* Add pull down to refresh in the Contributions screen.
|
|
||||||
* Fix race condition and lag when loading pin details, faster overlay management.
|
|
||||||
* Show cached pins in Nearby even when internet is unavailable
|
|
||||||
|
|
||||||
Full changelog with the list of contributors: [`v5.1.2...v5.2.0`](https://github.com/commons-app/apps-android-commons/compare/v5.1.2...v5.2.0).
|
|
||||||
|
|
||||||
|
|
||||||
## v5.1.2
|
## v5.1.2
|
||||||
|
|
||||||
### What's changed
|
### What's changed
|
||||||
|
|
|
||||||
|
|
@ -708,17 +708,8 @@ public class ExploreMapFragment extends CommonsDaggerSupportFragment
|
||||||
GeoPoint point = new GeoPoint(
|
GeoPoint point = new GeoPoint(
|
||||||
nearbyBaseMarker.getPlace().location.getLatitude(),
|
nearbyBaseMarker.getPlace().location.getLatitude(),
|
||||||
nearbyBaseMarker.getPlace().location.getLongitude());
|
nearbyBaseMarker.getPlace().location.getLongitude());
|
||||||
|
OverlayItem item = new OverlayItem(nearbyBaseMarker.getPlace().name, null,
|
||||||
Media markerMedia = this.getMediaFromImageURL(nearbyBaseMarker.getPlace().pic);
|
point);
|
||||||
String authorUser = null;
|
|
||||||
if (markerMedia != null) {
|
|
||||||
authorUser = markerMedia.getAuthorOrUser();
|
|
||||||
// HTML text is sometimes part of the author string and needs to be removed
|
|
||||||
authorUser = Html.fromHtml(authorUser, Html.FROM_HTML_MODE_LEGACY).toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
OverlayItem item = new OverlayItem(nearbyBaseMarker.getPlace().name,
|
|
||||||
authorUser, point);
|
|
||||||
item.setMarker(d);
|
item.setMarker(d);
|
||||||
items.add(item);
|
items.add(item);
|
||||||
ItemizedOverlayWithFocus overlay = new ItemizedOverlayWithFocus(items,
|
ItemizedOverlayWithFocus overlay = new ItemizedOverlayWithFocus(items,
|
||||||
|
|
@ -749,26 +740,6 @@ public class ExploreMapFragment extends CommonsDaggerSupportFragment
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Retrieves the specific Media object from the mediaList field.
|
|
||||||
* @param url The specific Media's image URL.
|
|
||||||
* @return The Media object that matches the URL or null if it could not be found.
|
|
||||||
*/
|
|
||||||
private Media getMediaFromImageURL(String url) {
|
|
||||||
if (mediaList == null || url == null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
for (int i = 0; i < mediaList.size(); i++) {
|
|
||||||
if (mediaList.get(i) != null && mediaList.get(i).getImageUrl() != null
|
|
||||||
&& mediaList.get(i).getImageUrl().equals(url)) {
|
|
||||||
return mediaList.get(i);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes a marker from the map based on the specified NearbyBaseMarker.
|
* Removes a marker from the map based on the specified NearbyBaseMarker.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue