Skip to content

Commit

Permalink
Clean up remainders of lifecycle experiment in Glide.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 495925873
  • Loading branch information
sjudd authored and glide-copybara-robot committed Dec 16, 2022
1 parent 2aed37c commit 128d290
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions library/src/main/java/com/bumptech/glide/GlideBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -487,18 +487,6 @@ public GlideBuilder setImageDecoderEnabledForBitmaps(boolean isEnabled) {
return this;
}

/**
* When given androidx Fragments and Activities, use {@link androidx.lifecycle.Lifecycle} to track
* the Activity or Fragment lifecycle instead of adding custom {@link
* com.bumptech.glide.manager.SupportRequestManagerFragment}s.
*
* <p>This flag is experimental and will be removed without notice in a future version.
*/
public GlideBuilder useLifecycleInsteadOfInjectingFragments(boolean isEnabled) {
glideExperimentsBuilder.update(new UseLifecycleInsteadOfInjectingFragments(), isEnabled);
return this;
}

/**
* Use {@link com.bumptech.glide.load.model.DirectResourceLoader} instead of {@link
* com.bumptech.glide.load.model.ResourceLoader} so that we load drawables asynchronously with the
Expand Down Expand Up @@ -633,12 +621,6 @@ static final class EnableImageDecoderForBitmaps implements Experiment {}
/** See {@link #setLogRequestOrigins(boolean)}. */
public static final class LogRequestOrigins implements Experiment {}

/**
* Use the androidx lifecycle instead of injecting custom fragments when using androidx fragments
* and activities.
*/
public static final class UseLifecycleInsteadOfInjectingFragments implements Experiment {}

/**
* Use {@link com.bumptech.glide.load.model.DirectResourceLoader} instead of {@link
* com.bumptech.glide.load.model.ResourceLoader} so that we load resources asynchronously with the
Expand Down

0 comments on commit 128d290

Please sign in to comment.