Skip to content

Conversation

ColaFanta
Copy link

@ColaFanta ColaFanta commented Sep 15, 2025

Description:

This PR implements the AssetEntity.isFavorite property for Android 11 (R) and above.

Changes:

  • Introduces a PhotoManagerFavoriteManager class to handle the new MediaStore.MediaColumns.IS_FAVORITE column.

  • Populates the isFavorite property by querying the IS_FAVORITE value from the MediaStore. For Android 10 and below, it is always false as before.

  • Updates the example project with a functional "Toggle isFavorite" button to demonstrate the feature.

CLOSES: #1311

@ColaFanta ColaFanta changed the title feat: Implement isFavorite for Android R+ feat: Implement isFavorite for Android R+ Sep 15, 2025
@ColaFanta ColaFanta force-pushed the feature/add-android-favorite branch from a686006 to 4bd0728 Compare October 5, 2025 12:37
…_FAVORITE

[1] added a `PhotoManagerFavoriteManager` class which implements `is_favorite` for Android R and above where MediaColumns.IS_FAVORITE is introduced
[2] updated `Toggle isFavorite` button for `example` project
@ColaFanta ColaFanta force-pushed the feature/add-android-favorite branch from 3f69bfd to 17a79b4 Compare October 5, 2025 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature request] Add AssetEntity.isFavorite Support on Android

2 participants