-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4857 from sjudd:ksp_in_gallery
PiperOrigin-RevId: 466144958
- Loading branch information
Showing
5 changed files
with
17 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 8 additions & 1 deletion
9
samples/gallery/src/main/java/com/bumptech/glide/samples/gallery/GalleryModule.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
package com.bumptech.glide.samples.gallery | ||
|
||
import android.content.Context | ||
import com.bumptech.glide.GlideBuilder | ||
import com.bumptech.glide.annotation.GlideModule | ||
import com.bumptech.glide.module.AppGlideModule | ||
|
||
/** Ensures that Glide's generated API is created for the Gallery sample. */ | ||
@GlideModule | ||
class GalleryModule : AppGlideModule() | ||
class GalleryModule : AppGlideModule() { | ||
override fun applyOptions(context: Context, builder: GlideBuilder) { | ||
super.applyOptions(context, builder) | ||
builder.setIsActiveResourceRetentionAllowed(true) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters