Skip to content

Commit

Permalink
Remove lazy registry intialization flag from Glide and default it on.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 435206652
  • Loading branch information
sjudd authored and glide-copybara-robot committed Mar 17, 2022
1 parent e2b488c commit 50702ef
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions library/src/main/java/com/bumptech/glide/Glide.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import androidx.annotation.VisibleForTesting;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentActivity;
import com.bumptech.glide.GlideBuilder.EnableLazyGlideRegistry;
import com.bumptech.glide.load.DecodeFormat;
import com.bumptech.glide.load.engine.Engine;
import com.bumptech.glide.load.engine.bitmap_recycle.ArrayPool;
Expand Down Expand Up @@ -254,12 +253,6 @@ private static void initializeGlide(
}
Glide glide = builder.build(applicationContext, manifestModules, annotationGeneratedModule);
applicationContext.registerComponentCallbacks(glide);

// Trigger the registry initialization eagerly, similar to the codepath prior to the experiment.
if (!glide.getGlideContext().getExperiments().isEnabled(EnableLazyGlideRegistry.class)) {
glide.getGlideContext().getRegistry();
}

Glide.glide = glide;
}

Expand Down

0 comments on commit 50702ef

Please sign in to comment.