Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a prebuilt DocumentsProvider for a MuzeiArtProvider #672

Merged
merged 19 commits into from Jul 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
9bb1813
Adds a DocumentsProvider that is tied to one or more MuzeiArtProviders
ianhanniballake Jun 29, 2020
eddad57
Implement openDocumentThumbnail
ianhanniballake Jul 2, 2020
d6912b0
Rename MuzeiDocumentsProvider to MuzeiArtDocumentsProvider
ianhanniballake Jul 3, 2020
5fe86e0
Add OPEN_DOCUMENT_TREE support
ianhanniballake Jul 3, 2020
bb16cf6
Fix getDocumentType logic
ianhanniballake Jul 3, 2020
c0b485b
Use artwork.dateModified for the LAST_MODIFIED column
ianhanniballake Jul 3, 2020
e335f9e
Support querying recent images
ianhanniballake Jul 3, 2020
9ce2882
Update MuzeiArtDocumentsProvider TAG
ianhanniballake Jul 3, 2020
2650833
Make all overridden methods final and @suppress
ianhanniballake Jul 3, 2020
a728384
Add COLUMN_SUMMARY to default root projection
ianhanniballake Jul 4, 2020
2e6e05c
Add KDocs for MuzeiArtDocumentsProvider
ianhanniballake Jul 4, 2020
314abfd
Connect MuzeiArtProvider changes to its MuzeiArtDocumentsProvider
ianhanniballake Jul 4, 2020
796bdcd
Defer to application icon/label if not found on the provider
ianhanniballake Jul 4, 2020
46d5d5d
Remove unneeded try/catch for NameNotFoundException
ianhanniballake Jul 4, 2020
55d418c
Use galleryArtAuthority directly for manifest entry
ianhanniballake Jul 5, 2020
8df1bca
Update guidance on supporting multiple MuzeiArtProvider instances
ianhanniballake Jul 5, 2020
be5f8aa
Use a subclass of MuzeiArtDocumentsProvider for the source-gallery mo…
ianhanniballake Jul 5, 2020
81b9105
Add a MuzeiArtDocumentsProvider to the Unsplash example module
ianhanniballake Jul 5, 2020
6461ba3
Mention MuzeiArtDocumentsProvider in the documentation for MuzeiArtPr…
ianhanniballake Jul 5, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 11 additions & 0 deletions example-unsplash/src/main/AndroidManifest.xml
Expand Up @@ -63,6 +63,17 @@
</intent-filter>
</provider>

<provider
android:name="com.google.android.apps.muzei.api.provider.MuzeiArtDocumentsProvider"
android:authorities="${unsplashAuthority}.documents"
android:exported="true"
android:grantUriPermissions="true"
android:permission="android.permission.MANAGE_DOCUMENTS">
<intent-filter>
<action android:name="android.content.action.DOCUMENTS_PROVIDER" />
</intent-filter>
</provider>

</application>

</manifest>
1 change: 1 addition & 0 deletions muzei-api/build.gradle
Expand Up @@ -36,6 +36,7 @@ allprojects { ext."signing.secretKeyRingFile" = props["signing.secretKeyRingFile

dependencies {
api "androidx.core:core:1.1.0"
implementation "androidx.exifinterface:exifinterface:1.2.0"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion"
}
android {
Expand Down