Clean up ignored files
This commit is contained in:
parent
d6a99f99e4
commit
ba23e5b622
9943 changed files with 155549 additions and 1107 deletions
|
@ -0,0 +1,15 @@
|
|||
/**
|
||||
* Automatically generated file. DO NOT MODIFY
|
||||
*/
|
||||
package code.name.monkey.retromusic;
|
||||
|
||||
public final class BuildConfig {
|
||||
public static final boolean DEBUG = Boolean.parseBoolean("true");
|
||||
public static final String APPLICATION_ID = "code.name.monkey.retromusic.debug";
|
||||
public static final String BUILD_TYPE = "debug";
|
||||
public static final String FLAVOR = "normal";
|
||||
public static final int VERSION_CODE = 10263;
|
||||
public static final String VERSION_NAME = "3.0.130_1213 DEBUG (kotlin)";
|
||||
// Fields from default config.
|
||||
public static final String GOOGLE_PLAY_LICENSING_KEY = "GOOGLE_PLAY_LICENSE_KEY missing";
|
||||
}
|
|
@ -0,0 +1,131 @@
|
|||
package code.name.monkey.retromusic.glide;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.app.Activity;
|
||||
import android.content.Context;
|
||||
import android.view.View;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.annotation.VisibleForTesting;
|
||||
import androidx.fragment.app.Fragment;
|
||||
import androidx.fragment.app.FragmentActivity;
|
||||
import com.bumptech.glide.Glide;
|
||||
import com.bumptech.glide.GlideBuilder;
|
||||
import java.io.File;
|
||||
import java.lang.Deprecated;
|
||||
import java.lang.String;
|
||||
|
||||
/**
|
||||
* The entry point for interacting with Glide for Applications
|
||||
*
|
||||
* <p>Includes all generated APIs from all
|
||||
* {@link com.bumptech.glide.annotation.GlideExtension}s in source and dependent libraries.
|
||||
*
|
||||
* <p>This class is generated and should not be modified
|
||||
* @see Glide
|
||||
*/
|
||||
public final class GlideApp {
|
||||
private GlideApp() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @see Glide#getPhotoCacheDir(Context)
|
||||
*/
|
||||
@Nullable
|
||||
public static File getPhotoCacheDir(@NonNull Context context) {
|
||||
return Glide.getPhotoCacheDir(context);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see Glide#getPhotoCacheDir(Context, String)
|
||||
*/
|
||||
@Nullable
|
||||
public static File getPhotoCacheDir(@NonNull Context context, @NonNull String string) {
|
||||
return Glide.getPhotoCacheDir(context, string);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see Glide#get(Context)
|
||||
*/
|
||||
@NonNull
|
||||
public static Glide get(@NonNull Context context) {
|
||||
return Glide.get(context);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see Glide#init(Glide)
|
||||
*/
|
||||
@Deprecated
|
||||
@VisibleForTesting
|
||||
@SuppressLint("VisibleForTests")
|
||||
public static void init(Glide glide) {
|
||||
Glide.init(glide);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see Glide#init(Context, GlideBuilder)
|
||||
*/
|
||||
@VisibleForTesting
|
||||
@SuppressLint("VisibleForTests")
|
||||
public static void init(@NonNull Context context, @NonNull GlideBuilder builder) {
|
||||
Glide.init(context, builder);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see Glide#tearDown()
|
||||
*/
|
||||
@VisibleForTesting
|
||||
@SuppressLint("VisibleForTests")
|
||||
public static void tearDown() {
|
||||
Glide.tearDown();
|
||||
}
|
||||
|
||||
/**
|
||||
* @see Glide#with(Context)
|
||||
*/
|
||||
@NonNull
|
||||
public static GlideRequests with(@NonNull Context context) {
|
||||
return (GlideRequests) Glide.with(context);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see Glide#with(Activity)
|
||||
*/
|
||||
@NonNull
|
||||
public static GlideRequests with(@NonNull Activity activity) {
|
||||
return (GlideRequests) Glide.with(activity);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see Glide#with(FragmentActivity)
|
||||
*/
|
||||
@NonNull
|
||||
public static GlideRequests with(@NonNull FragmentActivity activity) {
|
||||
return (GlideRequests) Glide.with(activity);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see Glide#with(Fragment)
|
||||
*/
|
||||
@NonNull
|
||||
public static GlideRequests with(@NonNull Fragment fragment) {
|
||||
return (GlideRequests) Glide.with(fragment);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see Glide#with(Fragment)
|
||||
*/
|
||||
@Deprecated
|
||||
@NonNull
|
||||
public static GlideRequests with(@NonNull android.app.Fragment fragment) {
|
||||
return (GlideRequests) Glide.with(fragment);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see Glide#with(View)
|
||||
*/
|
||||
@NonNull
|
||||
public static GlideRequests with(@NonNull View view) {
|
||||
return (GlideRequests) Glide.with(view);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,656 @@
|
|||
package code.name.monkey.retromusic.glide;
|
||||
|
||||
import android.content.res.Resources;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import androidx.annotation.CheckResult;
|
||||
import androidx.annotation.DrawableRes;
|
||||
import androidx.annotation.FloatRange;
|
||||
import androidx.annotation.IntRange;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import code.name.monkey.retromusic.model.Artist;
|
||||
import code.name.monkey.retromusic.model.Song;
|
||||
import com.bumptech.glide.Priority;
|
||||
import com.bumptech.glide.load.DecodeFormat;
|
||||
import com.bumptech.glide.load.Key;
|
||||
import com.bumptech.glide.load.Option;
|
||||
import com.bumptech.glide.load.Transformation;
|
||||
import com.bumptech.glide.load.engine.DiskCacheStrategy;
|
||||
import com.bumptech.glide.load.resource.bitmap.DownsampleStrategy;
|
||||
import com.bumptech.glide.request.RequestOptions;
|
||||
import java.lang.Class;
|
||||
import java.lang.Cloneable;
|
||||
import java.lang.Override;
|
||||
import java.lang.SafeVarargs;
|
||||
import java.lang.SuppressWarnings;
|
||||
|
||||
/**
|
||||
* Automatically generated from {@link com.bumptech.glide.annotation.GlideExtension} annotated classes.
|
||||
*
|
||||
* @see RequestOptions
|
||||
* @see RetroGlideExtension
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
public final class GlideOptions extends RequestOptions implements Cloneable {
|
||||
private static GlideOptions fitCenterTransform0;
|
||||
|
||||
private static GlideOptions centerInsideTransform1;
|
||||
|
||||
private static GlideOptions centerCropTransform2;
|
||||
|
||||
private static GlideOptions circleCropTransform3;
|
||||
|
||||
private static GlideOptions noTransformation4;
|
||||
|
||||
private static GlideOptions noAnimation5;
|
||||
|
||||
/**
|
||||
* @see RequestOptions#sizeMultiplierOf(float)
|
||||
*/
|
||||
@CheckResult
|
||||
@NonNull
|
||||
public static GlideOptions sizeMultiplierOf(@FloatRange(from = 0.0, to = 1.0) float value) {
|
||||
return new GlideOptions().sizeMultiplier(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see RequestOptions#diskCacheStrategyOf(DiskCacheStrategy)
|
||||
*/
|
||||
@CheckResult
|
||||
@NonNull
|
||||
public static GlideOptions diskCacheStrategyOf(@NonNull DiskCacheStrategy strategy) {
|
||||
return new GlideOptions().diskCacheStrategy(strategy);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see RequestOptions#priorityOf(Priority)
|
||||
*/
|
||||
@CheckResult
|
||||
@NonNull
|
||||
public static GlideOptions priorityOf(@NonNull Priority priority) {
|
||||
return new GlideOptions().priority(priority);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see RequestOptions#placeholderOf(Drawable)
|
||||
*/
|
||||
@CheckResult
|
||||
@NonNull
|
||||
public static GlideOptions placeholderOf(@Nullable Drawable drawable) {
|
||||
return new GlideOptions().placeholder(drawable);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see RequestOptions#placeholderOf(int)
|
||||
*/
|
||||
@CheckResult
|
||||
@NonNull
|
||||
public static GlideOptions placeholderOf(@DrawableRes int id) {
|
||||
return new GlideOptions().placeholder(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see RequestOptions#errorOf(Drawable)
|
||||
*/
|
||||
@CheckResult
|
||||
@NonNull
|
||||
public static GlideOptions errorOf(@Nullable Drawable drawable) {
|
||||
return new GlideOptions().error(drawable);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see RequestOptions#errorOf(int)
|
||||
*/
|
||||
@CheckResult
|
||||
@NonNull
|
||||
public static GlideOptions errorOf(@DrawableRes int id) {
|
||||
return new GlideOptions().error(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see RequestOptions#skipMemoryCacheOf(boolean)
|
||||
*/
|
||||
@CheckResult
|
||||
@NonNull
|
||||
public static GlideOptions skipMemoryCacheOf(boolean skipMemoryCache) {
|
||||
return new GlideOptions().skipMemoryCache(skipMemoryCache);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see RequestOptions#overrideOf(int, int)
|
||||
*/
|
||||
@CheckResult
|
||||
@NonNull
|
||||
public static GlideOptions overrideOf(@IntRange(from = 0) int value0,
|
||||
@IntRange(from = 0) int value1) {
|
||||
return new GlideOptions().override(value0, value1);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see RequestOptions#overrideOf(int)
|
||||
*/
|
||||
@CheckResult
|
||||
@NonNull
|
||||
public static GlideOptions overrideOf(@IntRange(from = 0) int value) {
|
||||
return new GlideOptions().override(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see RequestOptions#signatureOf(Key)
|
||||
*/
|
||||
@CheckResult
|
||||
@NonNull
|
||||
public static GlideOptions signatureOf(@NonNull Key key) {
|
||||
return new GlideOptions().signature(key);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see RequestOptions#fitCenterTransform()
|
||||
*/
|
||||
@CheckResult
|
||||
@NonNull
|
||||
public static GlideOptions fitCenterTransform() {
|
||||
if (GlideOptions.fitCenterTransform0 == null) {
|
||||
GlideOptions.fitCenterTransform0 =
|
||||
new GlideOptions().fitCenter().autoClone();
|
||||
}
|
||||
return GlideOptions.fitCenterTransform0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see RequestOptions#centerInsideTransform()
|
||||
*/
|
||||
@CheckResult
|
||||
@NonNull
|
||||
public static GlideOptions centerInsideTransform() {
|
||||
if (GlideOptions.centerInsideTransform1 == null) {
|
||||
GlideOptions.centerInsideTransform1 =
|
||||
new GlideOptions().centerInside().autoClone();
|
||||
}
|
||||
return GlideOptions.centerInsideTransform1;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see RequestOptions#centerCropTransform()
|
||||
*/
|
||||
@CheckResult
|
||||
@NonNull
|
||||
public static GlideOptions centerCropTransform() {
|
||||
if (GlideOptions.centerCropTransform2 == null) {
|
||||
GlideOptions.centerCropTransform2 =
|
||||
new GlideOptions().centerCrop().autoClone();
|
||||
}
|
||||
return GlideOptions.centerCropTransform2;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see RequestOptions#circleCropTransform()
|
||||
*/
|
||||
@CheckResult
|
||||
@NonNull
|
||||
public static GlideOptions circleCropTransform() {
|
||||
if (GlideOptions.circleCropTransform3 == null) {
|
||||
GlideOptions.circleCropTransform3 =
|
||||
new GlideOptions().circleCrop().autoClone();
|
||||
}
|
||||
return GlideOptions.circleCropTransform3;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see RequestOptions#bitmapTransform(Transformation)
|
||||
*/
|
||||
@CheckResult
|
||||
@NonNull
|
||||
public static GlideOptions bitmapTransform(@NonNull Transformation<Bitmap> transformation) {
|
||||
return new GlideOptions().transform(transformation);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see RequestOptions#noTransformation()
|
||||
*/
|
||||
@CheckResult
|
||||
@NonNull
|
||||
public static GlideOptions noTransformation() {
|
||||
if (GlideOptions.noTransformation4 == null) {
|
||||
GlideOptions.noTransformation4 =
|
||||
new GlideOptions().dontTransform().autoClone();
|
||||
}
|
||||
return GlideOptions.noTransformation4;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see RequestOptions#option(Option, T)
|
||||
*/
|
||||
@CheckResult
|
||||
@NonNull
|
||||
public static <T> GlideOptions option(@NonNull Option<T> option, @NonNull T t) {
|
||||
return new GlideOptions().set(option, t);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see RequestOptions#decodeTypeOf(Class)
|
||||
*/
|
||||
@CheckResult
|
||||
@NonNull
|
||||
public static GlideOptions decodeTypeOf(@NonNull Class<?> clazz) {
|
||||
return new GlideOptions().decode(clazz);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see RequestOptions#formatOf(DecodeFormat)
|
||||
*/
|
||||
@CheckResult
|
||||
@NonNull
|
||||
public static GlideOptions formatOf(@NonNull DecodeFormat format) {
|
||||
return new GlideOptions().format(format);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see RequestOptions#frameOf(long)
|
||||
*/
|
||||
@CheckResult
|
||||
@NonNull
|
||||
public static GlideOptions frameOf(@IntRange(from = 0) long value) {
|
||||
return new GlideOptions().frame(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see RequestOptions#downsampleOf(DownsampleStrategy)
|
||||
*/
|
||||
@CheckResult
|
||||
@NonNull
|
||||
public static GlideOptions downsampleOf(@NonNull DownsampleStrategy strategy) {
|
||||
return new GlideOptions().downsample(strategy);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see RequestOptions#timeoutOf(int)
|
||||
*/
|
||||
@CheckResult
|
||||
@NonNull
|
||||
public static GlideOptions timeoutOf(@IntRange(from = 0) int value) {
|
||||
return new GlideOptions().timeout(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see RequestOptions#encodeQualityOf(int)
|
||||
*/
|
||||
@CheckResult
|
||||
@NonNull
|
||||
public static GlideOptions encodeQualityOf(@IntRange(from = 0, to = 100) int value) {
|
||||
return new GlideOptions().encodeQuality(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see RequestOptions#encodeFormatOf(CompressFormat)
|
||||
*/
|
||||
@CheckResult
|
||||
@NonNull
|
||||
public static GlideOptions encodeFormatOf(@NonNull Bitmap.CompressFormat format) {
|
||||
return new GlideOptions().encodeFormat(format);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see RequestOptions#noAnimation()
|
||||
*/
|
||||
@CheckResult
|
||||
@NonNull
|
||||
public static GlideOptions noAnimation() {
|
||||
if (GlideOptions.noAnimation5 == null) {
|
||||
GlideOptions.noAnimation5 =
|
||||
new GlideOptions().dontAnimate().autoClone();
|
||||
}
|
||||
return GlideOptions.noAnimation5;
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public final GlideOptions sizeMultiplier(@FloatRange(from = 0.0, to = 1.0) float value) {
|
||||
return (GlideOptions) super.sizeMultiplier(value);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public final GlideOptions useUnlimitedSourceGeneratorsPool(boolean flag) {
|
||||
return (GlideOptions) super.useUnlimitedSourceGeneratorsPool(flag);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public final GlideOptions useAnimationPool(boolean flag) {
|
||||
return (GlideOptions) super.useAnimationPool(flag);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public final GlideOptions onlyRetrieveFromCache(boolean flag) {
|
||||
return (GlideOptions) super.onlyRetrieveFromCache(flag);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public final GlideOptions diskCacheStrategy(@NonNull DiskCacheStrategy strategy) {
|
||||
return (GlideOptions) super.diskCacheStrategy(strategy);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public final GlideOptions priority(@NonNull Priority priority) {
|
||||
return (GlideOptions) super.priority(priority);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public final GlideOptions placeholder(@Nullable Drawable drawable) {
|
||||
return (GlideOptions) super.placeholder(drawable);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public final GlideOptions placeholder(@DrawableRes int id) {
|
||||
return (GlideOptions) super.placeholder(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public final GlideOptions fallback(@Nullable Drawable drawable) {
|
||||
return (GlideOptions) super.fallback(drawable);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public final GlideOptions fallback(@DrawableRes int id) {
|
||||
return (GlideOptions) super.fallback(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public final GlideOptions error(@Nullable Drawable drawable) {
|
||||
return (GlideOptions) super.error(drawable);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public final GlideOptions error(@DrawableRes int id) {
|
||||
return (GlideOptions) super.error(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public final GlideOptions theme(@Nullable Resources.Theme theme) {
|
||||
return (GlideOptions) super.theme(theme);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public final GlideOptions skipMemoryCache(boolean skip) {
|
||||
return (GlideOptions) super.skipMemoryCache(skip);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public final GlideOptions override(int width, int height) {
|
||||
return (GlideOptions) super.override(width, height);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public final GlideOptions override(int size) {
|
||||
return (GlideOptions) super.override(size);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public final GlideOptions signature(@NonNull Key key) {
|
||||
return (GlideOptions) super.signature(key);
|
||||
}
|
||||
|
||||
@Override
|
||||
@CheckResult
|
||||
public final GlideOptions clone() {
|
||||
return (GlideOptions) super.clone();
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public final <T> GlideOptions set(@NonNull Option<T> option, @NonNull T t) {
|
||||
return (GlideOptions) super.set(option, t);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public final GlideOptions decode(@NonNull Class<?> clazz) {
|
||||
return (GlideOptions) super.decode(clazz);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public final GlideOptions encodeFormat(@NonNull Bitmap.CompressFormat format) {
|
||||
return (GlideOptions) super.encodeFormat(format);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public final GlideOptions encodeQuality(@IntRange(from = 0, to = 100) int value) {
|
||||
return (GlideOptions) super.encodeQuality(value);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public final GlideOptions frame(@IntRange(from = 0) long value) {
|
||||
return (GlideOptions) super.frame(value);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public final GlideOptions format(@NonNull DecodeFormat format) {
|
||||
return (GlideOptions) super.format(format);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public final GlideOptions disallowHardwareConfig() {
|
||||
return (GlideOptions) super.disallowHardwareConfig();
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public final GlideOptions downsample(@NonNull DownsampleStrategy strategy) {
|
||||
return (GlideOptions) super.downsample(strategy);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public final GlideOptions timeout(@IntRange(from = 0) int value) {
|
||||
return (GlideOptions) super.timeout(value);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public final GlideOptions optionalCenterCrop() {
|
||||
return (GlideOptions) super.optionalCenterCrop();
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public final GlideOptions centerCrop() {
|
||||
return (GlideOptions) super.centerCrop();
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public final GlideOptions optionalFitCenter() {
|
||||
return (GlideOptions) super.optionalFitCenter();
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public final GlideOptions fitCenter() {
|
||||
return (GlideOptions) super.fitCenter();
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public final GlideOptions optionalCenterInside() {
|
||||
return (GlideOptions) super.optionalCenterInside();
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public final GlideOptions centerInside() {
|
||||
return (GlideOptions) super.centerInside();
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public final GlideOptions optionalCircleCrop() {
|
||||
return (GlideOptions) super.optionalCircleCrop();
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public final GlideOptions circleCrop() {
|
||||
return (GlideOptions) super.circleCrop();
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public final GlideOptions transform(@NonNull Transformation<Bitmap> transformation) {
|
||||
return (GlideOptions) super.transform(transformation);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SafeVarargs
|
||||
@SuppressWarnings("varargs")
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public final GlideOptions transforms(@NonNull Transformation<Bitmap>... transformations) {
|
||||
return (GlideOptions) super.transforms(transformations);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public final GlideOptions optionalTransform(@NonNull Transformation<Bitmap> transformation) {
|
||||
return (GlideOptions) super.optionalTransform(transformation);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public final <T> GlideOptions optionalTransform(@NonNull Class<T> clazz,
|
||||
@NonNull Transformation<T> transformation) {
|
||||
return (GlideOptions) super.optionalTransform(clazz, transformation);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public final <T> GlideOptions transform(@NonNull Class<T> clazz,
|
||||
@NonNull Transformation<T> transformation) {
|
||||
return (GlideOptions) super.transform(clazz, transformation);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public final GlideOptions dontTransform() {
|
||||
return (GlideOptions) super.dontTransform();
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public final GlideOptions dontAnimate() {
|
||||
return (GlideOptions) super.dontAnimate();
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public final GlideOptions apply(@NonNull RequestOptions options) {
|
||||
return (GlideOptions) super.apply(options);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
public final GlideOptions lock() {
|
||||
return (GlideOptions) super.lock();
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
public final GlideOptions autoClone() {
|
||||
return (GlideOptions) super.autoClone();
|
||||
}
|
||||
|
||||
/**
|
||||
* @see RetroGlideExtension#artistOptions(RequestOptions, Artist)
|
||||
*/
|
||||
@CheckResult
|
||||
@NonNull
|
||||
public GlideOptions artistOptions(Artist artist) {
|
||||
return (GlideOptions) RetroGlideExtension.artistOptions(this, artist);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see RetroGlideExtension#artistOptions(RequestOptions, Artist)
|
||||
*/
|
||||
@CheckResult
|
||||
public static GlideOptions artistOptionsOf(Artist artist) {
|
||||
return new GlideOptions().artistOptions(artist);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see RetroGlideExtension#songOptions(RequestOptions, Song)
|
||||
*/
|
||||
@CheckResult
|
||||
@NonNull
|
||||
public GlideOptions songOptions(Song song) {
|
||||
return (GlideOptions) RetroGlideExtension.songOptions(this, song);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see RetroGlideExtension#songOptions(RequestOptions, Song)
|
||||
*/
|
||||
@CheckResult
|
||||
public static GlideOptions songOptionsOf(Song song) {
|
||||
return new GlideOptions().songOptions(song);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,807 @@
|
|||
package code.name.monkey.retromusic.glide;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.res.Resources;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.net.Uri;
|
||||
import androidx.annotation.CheckResult;
|
||||
import androidx.annotation.DrawableRes;
|
||||
import androidx.annotation.FloatRange;
|
||||
import androidx.annotation.IntRange;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.annotation.RawRes;
|
||||
import code.name.monkey.retromusic.model.Artist;
|
||||
import code.name.monkey.retromusic.model.Song;
|
||||
import com.bumptech.glide.Glide;
|
||||
import com.bumptech.glide.Priority;
|
||||
import com.bumptech.glide.RequestBuilder;
|
||||
import com.bumptech.glide.RequestManager;
|
||||
import com.bumptech.glide.TransitionOptions;
|
||||
import com.bumptech.glide.load.DecodeFormat;
|
||||
import com.bumptech.glide.load.Key;
|
||||
import com.bumptech.glide.load.Option;
|
||||
import com.bumptech.glide.load.Transformation;
|
||||
import com.bumptech.glide.load.engine.DiskCacheStrategy;
|
||||
import com.bumptech.glide.load.resource.bitmap.DownsampleStrategy;
|
||||
import com.bumptech.glide.request.RequestListener;
|
||||
import com.bumptech.glide.request.RequestOptions;
|
||||
import java.io.File;
|
||||
import java.lang.Class;
|
||||
import java.lang.Cloneable;
|
||||
import java.lang.Deprecated;
|
||||
import java.lang.Integer;
|
||||
import java.lang.Object;
|
||||
import java.lang.Override;
|
||||
import java.lang.SafeVarargs;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.net.URL;
|
||||
|
||||
/**
|
||||
* Contains all public methods from {@link RequestBuilder<TranscodeType>}, all options from
|
||||
* {@link RequestOptions} and all generated options from
|
||||
* {@link com.bumptech.glide.annotation.GlideOption} in annotated methods in
|
||||
* {@link com.bumptech.glide.annotation.GlideExtension} annotated classes.
|
||||
*
|
||||
* <p>Generated code, do not modify.
|
||||
*
|
||||
* @see RequestBuilder<TranscodeType>
|
||||
* @see RequestOptions
|
||||
*/
|
||||
@SuppressWarnings({
|
||||
"unused",
|
||||
"deprecation"
|
||||
})
|
||||
public class GlideRequest<TranscodeType> extends RequestBuilder<TranscodeType> implements Cloneable {
|
||||
GlideRequest(@NonNull Class<TranscodeType> transcodeClass, @NonNull RequestBuilder<?> other) {
|
||||
super(transcodeClass, other);
|
||||
}
|
||||
|
||||
GlideRequest(@NonNull Glide glide, @NonNull RequestManager requestManager,
|
||||
@NonNull Class<TranscodeType> transcodeClass, @NonNull Context context) {
|
||||
super(glide, requestManager ,transcodeClass, context);
|
||||
}
|
||||
|
||||
@Override
|
||||
@CheckResult
|
||||
@NonNull
|
||||
protected GlideRequest<File> getDownloadOnlyRequest() {
|
||||
return new GlideRequest<>(File.class, this).apply(DOWNLOAD_ONLY_OPTIONS);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see GlideOptions#sizeMultiplier(float)
|
||||
*/
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> sizeMultiplier(@FloatRange(from = 0.0, to = 1.0) float value) {
|
||||
if (getMutableOptions() instanceof GlideOptions) {
|
||||
this.requestOptions = ((GlideOptions) getMutableOptions()).sizeMultiplier(value);
|
||||
} else {
|
||||
this.requestOptions = new GlideOptions().apply(this.requestOptions).sizeMultiplier(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see GlideOptions#useUnlimitedSourceGeneratorsPool(boolean)
|
||||
*/
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> useUnlimitedSourceGeneratorsPool(boolean flag) {
|
||||
if (getMutableOptions() instanceof GlideOptions) {
|
||||
this.requestOptions = ((GlideOptions) getMutableOptions()).useUnlimitedSourceGeneratorsPool(flag);
|
||||
} else {
|
||||
this.requestOptions = new GlideOptions().apply(this.requestOptions).useUnlimitedSourceGeneratorsPool(flag);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see GlideOptions#useAnimationPool(boolean)
|
||||
*/
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> useAnimationPool(boolean flag) {
|
||||
if (getMutableOptions() instanceof GlideOptions) {
|
||||
this.requestOptions = ((GlideOptions) getMutableOptions()).useAnimationPool(flag);
|
||||
} else {
|
||||
this.requestOptions = new GlideOptions().apply(this.requestOptions).useAnimationPool(flag);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see GlideOptions#onlyRetrieveFromCache(boolean)
|
||||
*/
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> onlyRetrieveFromCache(boolean flag) {
|
||||
if (getMutableOptions() instanceof GlideOptions) {
|
||||
this.requestOptions = ((GlideOptions) getMutableOptions()).onlyRetrieveFromCache(flag);
|
||||
} else {
|
||||
this.requestOptions = new GlideOptions().apply(this.requestOptions).onlyRetrieveFromCache(flag);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see GlideOptions#diskCacheStrategy(DiskCacheStrategy)
|
||||
*/
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> diskCacheStrategy(@NonNull DiskCacheStrategy strategy) {
|
||||
if (getMutableOptions() instanceof GlideOptions) {
|
||||
this.requestOptions = ((GlideOptions) getMutableOptions()).diskCacheStrategy(strategy);
|
||||
} else {
|
||||
this.requestOptions = new GlideOptions().apply(this.requestOptions).diskCacheStrategy(strategy);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see GlideOptions#priority(Priority)
|
||||
*/
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> priority(@NonNull Priority priority) {
|
||||
if (getMutableOptions() instanceof GlideOptions) {
|
||||
this.requestOptions = ((GlideOptions) getMutableOptions()).priority(priority);
|
||||
} else {
|
||||
this.requestOptions = new GlideOptions().apply(this.requestOptions).priority(priority);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see GlideOptions#placeholder(Drawable)
|
||||
*/
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> placeholder(@Nullable Drawable drawable) {
|
||||
if (getMutableOptions() instanceof GlideOptions) {
|
||||
this.requestOptions = ((GlideOptions) getMutableOptions()).placeholder(drawable);
|
||||
} else {
|
||||
this.requestOptions = new GlideOptions().apply(this.requestOptions).placeholder(drawable);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see GlideOptions#placeholder(int)
|
||||
*/
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> placeholder(@DrawableRes int id) {
|
||||
if (getMutableOptions() instanceof GlideOptions) {
|
||||
this.requestOptions = ((GlideOptions) getMutableOptions()).placeholder(id);
|
||||
} else {
|
||||
this.requestOptions = new GlideOptions().apply(this.requestOptions).placeholder(id);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see GlideOptions#fallback(Drawable)
|
||||
*/
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> fallback(@Nullable Drawable drawable) {
|
||||
if (getMutableOptions() instanceof GlideOptions) {
|
||||
this.requestOptions = ((GlideOptions) getMutableOptions()).fallback(drawable);
|
||||
} else {
|
||||
this.requestOptions = new GlideOptions().apply(this.requestOptions).fallback(drawable);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see GlideOptions#fallback(int)
|
||||
*/
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> fallback(@DrawableRes int id) {
|
||||
if (getMutableOptions() instanceof GlideOptions) {
|
||||
this.requestOptions = ((GlideOptions) getMutableOptions()).fallback(id);
|
||||
} else {
|
||||
this.requestOptions = new GlideOptions().apply(this.requestOptions).fallback(id);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see GlideOptions#error(Drawable)
|
||||
*/
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> error(@Nullable Drawable drawable) {
|
||||
if (getMutableOptions() instanceof GlideOptions) {
|
||||
this.requestOptions = ((GlideOptions) getMutableOptions()).error(drawable);
|
||||
} else {
|
||||
this.requestOptions = new GlideOptions().apply(this.requestOptions).error(drawable);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see GlideOptions#error(int)
|
||||
*/
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> error(@DrawableRes int id) {
|
||||
if (getMutableOptions() instanceof GlideOptions) {
|
||||
this.requestOptions = ((GlideOptions) getMutableOptions()).error(id);
|
||||
} else {
|
||||
this.requestOptions = new GlideOptions().apply(this.requestOptions).error(id);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see GlideOptions#theme(Resources.Theme)
|
||||
*/
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> theme(@Nullable Resources.Theme theme) {
|
||||
if (getMutableOptions() instanceof GlideOptions) {
|
||||
this.requestOptions = ((GlideOptions) getMutableOptions()).theme(theme);
|
||||
} else {
|
||||
this.requestOptions = new GlideOptions().apply(this.requestOptions).theme(theme);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see GlideOptions#skipMemoryCache(boolean)
|
||||
*/
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> skipMemoryCache(boolean skip) {
|
||||
if (getMutableOptions() instanceof GlideOptions) {
|
||||
this.requestOptions = ((GlideOptions) getMutableOptions()).skipMemoryCache(skip);
|
||||
} else {
|
||||
this.requestOptions = new GlideOptions().apply(this.requestOptions).skipMemoryCache(skip);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see GlideOptions#override(int, int)
|
||||
*/
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> override(int width, int height) {
|
||||
if (getMutableOptions() instanceof GlideOptions) {
|
||||
this.requestOptions = ((GlideOptions) getMutableOptions()).override(width, height);
|
||||
} else {
|
||||
this.requestOptions = new GlideOptions().apply(this.requestOptions).override(width, height);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see GlideOptions#override(int)
|
||||
*/
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> override(int size) {
|
||||
if (getMutableOptions() instanceof GlideOptions) {
|
||||
this.requestOptions = ((GlideOptions) getMutableOptions()).override(size);
|
||||
} else {
|
||||
this.requestOptions = new GlideOptions().apply(this.requestOptions).override(size);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see GlideOptions#signature(Key)
|
||||
*/
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> signature(@NonNull Key key) {
|
||||
if (getMutableOptions() instanceof GlideOptions) {
|
||||
this.requestOptions = ((GlideOptions) getMutableOptions()).signature(key);
|
||||
} else {
|
||||
this.requestOptions = new GlideOptions().apply(this.requestOptions).signature(key);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see GlideOptions#set(Option<T>, T)
|
||||
*/
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public <T> GlideRequest<TranscodeType> set(@NonNull Option<T> option, @NonNull T t) {
|
||||
if (getMutableOptions() instanceof GlideOptions) {
|
||||
this.requestOptions = ((GlideOptions) getMutableOptions()).set(option, t);
|
||||
} else {
|
||||
this.requestOptions = new GlideOptions().apply(this.requestOptions).set(option, t);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see GlideOptions#decode(Class<?>)
|
||||
*/
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> decode(@NonNull Class<?> clazz) {
|
||||
if (getMutableOptions() instanceof GlideOptions) {
|
||||
this.requestOptions = ((GlideOptions) getMutableOptions()).decode(clazz);
|
||||
} else {
|
||||
this.requestOptions = new GlideOptions().apply(this.requestOptions).decode(clazz);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see GlideOptions#encodeFormat(Bitmap.CompressFormat)
|
||||
*/
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> encodeFormat(@NonNull Bitmap.CompressFormat format) {
|
||||
if (getMutableOptions() instanceof GlideOptions) {
|
||||
this.requestOptions = ((GlideOptions) getMutableOptions()).encodeFormat(format);
|
||||
} else {
|
||||
this.requestOptions = new GlideOptions().apply(this.requestOptions).encodeFormat(format);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see GlideOptions#encodeQuality(int)
|
||||
*/
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> encodeQuality(@IntRange(from = 0, to = 100) int value) {
|
||||
if (getMutableOptions() instanceof GlideOptions) {
|
||||
this.requestOptions = ((GlideOptions) getMutableOptions()).encodeQuality(value);
|
||||
} else {
|
||||
this.requestOptions = new GlideOptions().apply(this.requestOptions).encodeQuality(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see GlideOptions#frame(long)
|
||||
*/
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> frame(@IntRange(from = 0) long value) {
|
||||
if (getMutableOptions() instanceof GlideOptions) {
|
||||
this.requestOptions = ((GlideOptions) getMutableOptions()).frame(value);
|
||||
} else {
|
||||
this.requestOptions = new GlideOptions().apply(this.requestOptions).frame(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see GlideOptions#format(DecodeFormat)
|
||||
*/
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> format(@NonNull DecodeFormat format) {
|
||||
if (getMutableOptions() instanceof GlideOptions) {
|
||||
this.requestOptions = ((GlideOptions) getMutableOptions()).format(format);
|
||||
} else {
|
||||
this.requestOptions = new GlideOptions().apply(this.requestOptions).format(format);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see GlideOptions#disallowHardwareConfig()
|
||||
*/
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> disallowHardwareConfig() {
|
||||
if (getMutableOptions() instanceof GlideOptions) {
|
||||
this.requestOptions = ((GlideOptions) getMutableOptions()).disallowHardwareConfig();
|
||||
} else {
|
||||
this.requestOptions = new GlideOptions().apply(this.requestOptions).disallowHardwareConfig();
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see GlideOptions#downsample(DownsampleStrategy)
|
||||
*/
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> downsample(@NonNull DownsampleStrategy strategy) {
|
||||
if (getMutableOptions() instanceof GlideOptions) {
|
||||
this.requestOptions = ((GlideOptions) getMutableOptions()).downsample(strategy);
|
||||
} else {
|
||||
this.requestOptions = new GlideOptions().apply(this.requestOptions).downsample(strategy);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see GlideOptions#timeout(int)
|
||||
*/
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> timeout(@IntRange(from = 0) int value) {
|
||||
if (getMutableOptions() instanceof GlideOptions) {
|
||||
this.requestOptions = ((GlideOptions) getMutableOptions()).timeout(value);
|
||||
} else {
|
||||
this.requestOptions = new GlideOptions().apply(this.requestOptions).timeout(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see GlideOptions#optionalCenterCrop()
|
||||
*/
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> optionalCenterCrop() {
|
||||
if (getMutableOptions() instanceof GlideOptions) {
|
||||
this.requestOptions = ((GlideOptions) getMutableOptions()).optionalCenterCrop();
|
||||
} else {
|
||||
this.requestOptions = new GlideOptions().apply(this.requestOptions).optionalCenterCrop();
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see GlideOptions#centerCrop()
|
||||
*/
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> centerCrop() {
|
||||
if (getMutableOptions() instanceof GlideOptions) {
|
||||
this.requestOptions = ((GlideOptions) getMutableOptions()).centerCrop();
|
||||
} else {
|
||||
this.requestOptions = new GlideOptions().apply(this.requestOptions).centerCrop();
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see GlideOptions#optionalFitCenter()
|
||||
*/
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> optionalFitCenter() {
|
||||
if (getMutableOptions() instanceof GlideOptions) {
|
||||
this.requestOptions = ((GlideOptions) getMutableOptions()).optionalFitCenter();
|
||||
} else {
|
||||
this.requestOptions = new GlideOptions().apply(this.requestOptions).optionalFitCenter();
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see GlideOptions#fitCenter()
|
||||
*/
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> fitCenter() {
|
||||
if (getMutableOptions() instanceof GlideOptions) {
|
||||
this.requestOptions = ((GlideOptions) getMutableOptions()).fitCenter();
|
||||
} else {
|
||||
this.requestOptions = new GlideOptions().apply(this.requestOptions).fitCenter();
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see GlideOptions#optionalCenterInside()
|
||||
*/
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> optionalCenterInside() {
|
||||
if (getMutableOptions() instanceof GlideOptions) {
|
||||
this.requestOptions = ((GlideOptions) getMutableOptions()).optionalCenterInside();
|
||||
} else {
|
||||
this.requestOptions = new GlideOptions().apply(this.requestOptions).optionalCenterInside();
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see GlideOptions#centerInside()
|
||||
*/
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> centerInside() {
|
||||
if (getMutableOptions() instanceof GlideOptions) {
|
||||
this.requestOptions = ((GlideOptions) getMutableOptions()).centerInside();
|
||||
} else {
|
||||
this.requestOptions = new GlideOptions().apply(this.requestOptions).centerInside();
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see GlideOptions#optionalCircleCrop()
|
||||
*/
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> optionalCircleCrop() {
|
||||
if (getMutableOptions() instanceof GlideOptions) {
|
||||
this.requestOptions = ((GlideOptions) getMutableOptions()).optionalCircleCrop();
|
||||
} else {
|
||||
this.requestOptions = new GlideOptions().apply(this.requestOptions).optionalCircleCrop();
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see GlideOptions#circleCrop()
|
||||
*/
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> circleCrop() {
|
||||
if (getMutableOptions() instanceof GlideOptions) {
|
||||
this.requestOptions = ((GlideOptions) getMutableOptions()).circleCrop();
|
||||
} else {
|
||||
this.requestOptions = new GlideOptions().apply(this.requestOptions).circleCrop();
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see GlideOptions#transform(Transformation<Bitmap>)
|
||||
*/
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> transform(@NonNull Transformation<Bitmap> transformation) {
|
||||
if (getMutableOptions() instanceof GlideOptions) {
|
||||
this.requestOptions = ((GlideOptions) getMutableOptions()).transform(transformation);
|
||||
} else {
|
||||
this.requestOptions = new GlideOptions().apply(this.requestOptions).transform(transformation);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see GlideOptions#transforms(Transformation<Bitmap>[])
|
||||
*/
|
||||
@NonNull
|
||||
@CheckResult
|
||||
@SuppressWarnings({
|
||||
"unchecked",
|
||||
"varargs"
|
||||
})
|
||||
public GlideRequest<TranscodeType> transforms(@NonNull Transformation<Bitmap>... transformations) {
|
||||
if (getMutableOptions() instanceof GlideOptions) {
|
||||
this.requestOptions = ((GlideOptions) getMutableOptions()).transforms(transformations);
|
||||
} else {
|
||||
this.requestOptions = new GlideOptions().apply(this.requestOptions).transforms(transformations);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see GlideOptions#optionalTransform(Transformation<Bitmap>)
|
||||
*/
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> optionalTransform(@NonNull Transformation<Bitmap> transformation) {
|
||||
if (getMutableOptions() instanceof GlideOptions) {
|
||||
this.requestOptions = ((GlideOptions) getMutableOptions()).optionalTransform(transformation);
|
||||
} else {
|
||||
this.requestOptions = new GlideOptions().apply(this.requestOptions).optionalTransform(transformation);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see GlideOptions#optionalTransform(Class<T>, Transformation<T>)
|
||||
*/
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public <T> GlideRequest<TranscodeType> optionalTransform(@NonNull Class<T> clazz,
|
||||
@NonNull Transformation<T> transformation) {
|
||||
if (getMutableOptions() instanceof GlideOptions) {
|
||||
this.requestOptions = ((GlideOptions) getMutableOptions()).optionalTransform(clazz, transformation);
|
||||
} else {
|
||||
this.requestOptions = new GlideOptions().apply(this.requestOptions).optionalTransform(clazz, transformation);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see GlideOptions#transform(Class<T>, Transformation<T>)
|
||||
*/
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public <T> GlideRequest<TranscodeType> transform(@NonNull Class<T> clazz,
|
||||
@NonNull Transformation<T> transformation) {
|
||||
if (getMutableOptions() instanceof GlideOptions) {
|
||||
this.requestOptions = ((GlideOptions) getMutableOptions()).transform(clazz, transformation);
|
||||
} else {
|
||||
this.requestOptions = new GlideOptions().apply(this.requestOptions).transform(clazz, transformation);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see GlideOptions#dontTransform()
|
||||
*/
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> dontTransform() {
|
||||
if (getMutableOptions() instanceof GlideOptions) {
|
||||
this.requestOptions = ((GlideOptions) getMutableOptions()).dontTransform();
|
||||
} else {
|
||||
this.requestOptions = new GlideOptions().apply(this.requestOptions).dontTransform();
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see GlideOptions#dontAnimate()
|
||||
*/
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> dontAnimate() {
|
||||
if (getMutableOptions() instanceof GlideOptions) {
|
||||
this.requestOptions = ((GlideOptions) getMutableOptions()).dontAnimate();
|
||||
} else {
|
||||
this.requestOptions = new GlideOptions().apply(this.requestOptions).dontAnimate();
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see GlideOptions#artistOptions(Artist)
|
||||
*/
|
||||
@CheckResult
|
||||
@NonNull
|
||||
public GlideRequest<TranscodeType> artistOptions(Artist artist) {
|
||||
if (getMutableOptions() instanceof GlideOptions) {
|
||||
this.requestOptions = ((GlideOptions) getMutableOptions()).artistOptions(artist);
|
||||
} else {
|
||||
this.requestOptions = new GlideOptions().apply(this.requestOptions).artistOptions(artist);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see GlideOptions#songOptions(Song)
|
||||
*/
|
||||
@CheckResult
|
||||
@NonNull
|
||||
public GlideRequest<TranscodeType> songOptions(Song song) {
|
||||
if (getMutableOptions() instanceof GlideOptions) {
|
||||
this.requestOptions = ((GlideOptions) getMutableOptions()).songOptions(song);
|
||||
} else {
|
||||
this.requestOptions = new GlideOptions().apply(this.requestOptions).songOptions(song);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> apply(@NonNull RequestOptions options) {
|
||||
return (GlideRequest<TranscodeType>) super.apply(options);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> transition(@NonNull TransitionOptions<?, ? super TranscodeType> options) {
|
||||
return (GlideRequest<TranscodeType>) super.transition(options);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> listener(@Nullable RequestListener<TranscodeType> listener) {
|
||||
return (GlideRequest<TranscodeType>) super.listener(listener);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> addListener(@Nullable RequestListener<TranscodeType> listener) {
|
||||
return (GlideRequest<TranscodeType>) super.addListener(listener);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
public GlideRequest<TranscodeType> error(@Nullable RequestBuilder<TranscodeType> builder) {
|
||||
return (GlideRequest<TranscodeType>) super.error(builder);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> thumbnail(@Nullable RequestBuilder<TranscodeType> builder) {
|
||||
return (GlideRequest<TranscodeType>) super.thumbnail(builder);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
@SafeVarargs
|
||||
@SuppressWarnings("varargs")
|
||||
public final GlideRequest<TranscodeType> thumbnail(@Nullable RequestBuilder<TranscodeType>... builders) {
|
||||
return (GlideRequest<TranscodeType>) super.thumbnail(builders);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> thumbnail(float sizeMultiplier) {
|
||||
return (GlideRequest<TranscodeType>) super.thumbnail(sizeMultiplier);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> load(@Nullable Object o) {
|
||||
return (GlideRequest<TranscodeType>) super.load(o);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> load(@Nullable Bitmap bitmap) {
|
||||
return (GlideRequest<TranscodeType>) super.load(bitmap);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> load(@Nullable Drawable drawable) {
|
||||
return (GlideRequest<TranscodeType>) super.load(drawable);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> load(@Nullable String string) {
|
||||
return (GlideRequest<TranscodeType>) super.load(string);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> load(@Nullable Uri uri) {
|
||||
return (GlideRequest<TranscodeType>) super.load(uri);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> load(@Nullable File file) {
|
||||
return (GlideRequest<TranscodeType>) super.load(file);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> load(@RawRes @DrawableRes @Nullable Integer id) {
|
||||
return (GlideRequest<TranscodeType>) super.load(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> load(@Nullable URL url) {
|
||||
return (GlideRequest<TranscodeType>) super.load(url);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> load(@Nullable byte[] bytes) {
|
||||
return (GlideRequest<TranscodeType>) super.load(bytes);
|
||||
}
|
||||
|
||||
@Override
|
||||
@CheckResult
|
||||
public GlideRequest<TranscodeType> clone() {
|
||||
return (GlideRequest<TranscodeType>) super.clone();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,185 @@
|
|||
package code.name.monkey.retromusic.glide;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.net.Uri;
|
||||
import androidx.annotation.CheckResult;
|
||||
import androidx.annotation.DrawableRes;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.annotation.RawRes;
|
||||
import code.name.monkey.retromusic.glide.palette.BitmapPaletteWrapper;
|
||||
import com.bumptech.glide.Glide;
|
||||
import com.bumptech.glide.RequestManager;
|
||||
import com.bumptech.glide.load.resource.gif.GifDrawable;
|
||||
import com.bumptech.glide.manager.Lifecycle;
|
||||
import com.bumptech.glide.manager.RequestManagerTreeNode;
|
||||
import com.bumptech.glide.request.RequestOptions;
|
||||
import java.io.File;
|
||||
import java.lang.Class;
|
||||
import java.lang.Deprecated;
|
||||
import java.lang.Integer;
|
||||
import java.lang.Object;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.net.URL;
|
||||
|
||||
/**
|
||||
* Includes all additions from methods in {@link com.bumptech.glide.annotation.GlideExtension}s
|
||||
* annotated with {@link com.bumptech.glide.annotation.GlideType}
|
||||
*
|
||||
* <p>Generated code, do not modify
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
public class GlideRequests extends RequestManager {
|
||||
public GlideRequests(@NonNull Glide glide, @NonNull Lifecycle lifecycle,
|
||||
@NonNull RequestManagerTreeNode treeNode, @NonNull Context context) {
|
||||
super(glide, lifecycle, treeNode, context);
|
||||
}
|
||||
|
||||
@Override
|
||||
@CheckResult
|
||||
@NonNull
|
||||
public <ResourceType> GlideRequest<ResourceType> as(@NonNull Class<ResourceType> resourceClass) {
|
||||
return new GlideRequest<>(glide, this, resourceClass, context);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see RetroGlideExtension#asBitmapPalette(RequestBuilder)
|
||||
*/
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<BitmapPaletteWrapper> asBitmapPalette() {
|
||||
GlideRequest<BitmapPaletteWrapper> requestBuilder = this.as(BitmapPaletteWrapper.class);
|
||||
RetroGlideExtension.asBitmapPalette(requestBuilder);
|
||||
return requestBuilder;
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
public GlideRequests applyDefaultRequestOptions(@NonNull RequestOptions options) {
|
||||
return (GlideRequests) super.applyDefaultRequestOptions(options);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
public GlideRequests setDefaultRequestOptions(@NonNull RequestOptions options) {
|
||||
return (GlideRequests) super.setDefaultRequestOptions(options);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<Bitmap> asBitmap() {
|
||||
return (GlideRequest<Bitmap>) super.asBitmap();
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<GifDrawable> asGif() {
|
||||
return (GlideRequest<GifDrawable>) super.asGif();
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<Drawable> asDrawable() {
|
||||
return (GlideRequest<Drawable>) super.asDrawable();
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<Drawable> load(@Nullable Bitmap bitmap) {
|
||||
return (GlideRequest<Drawable>) super.load(bitmap);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<Drawable> load(@Nullable Drawable drawable) {
|
||||
return (GlideRequest<Drawable>) super.load(drawable);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<Drawable> load(@Nullable String string) {
|
||||
return (GlideRequest<Drawable>) super.load(string);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<Drawable> load(@Nullable Uri uri) {
|
||||
return (GlideRequest<Drawable>) super.load(uri);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<Drawable> load(@Nullable File file) {
|
||||
return (GlideRequest<Drawable>) super.load(file);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<Drawable> load(@RawRes @DrawableRes @Nullable Integer id) {
|
||||
return (GlideRequest<Drawable>) super.load(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
@CheckResult
|
||||
public GlideRequest<Drawable> load(@Nullable URL url) {
|
||||
return (GlideRequest<Drawable>) super.load(url);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<Drawable> load(@Nullable byte[] bytes) {
|
||||
return (GlideRequest<Drawable>) super.load(bytes);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<Drawable> load(@Nullable Object o) {
|
||||
return (GlideRequest<Drawable>) super.load(o);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<File> downloadOnly() {
|
||||
return (GlideRequest<File>) super.downloadOnly();
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<File> download(@Nullable Object o) {
|
||||
return (GlideRequest<File>) super.download(o);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
@CheckResult
|
||||
public GlideRequest<File> asFile() {
|
||||
return (GlideRequest<File>) super.asFile();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void setRequestOptions(@NonNull RequestOptions toSet) {
|
||||
if (toSet instanceof code.name.monkey.retromusic.glide.GlideOptions) {
|
||||
super.setRequestOptions(toSet);
|
||||
} else {
|
||||
super.setRequestOptions(new code.name.monkey.retromusic.glide.GlideOptions().apply(toSet));
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,54 @@
|
|||
package com.bumptech.glide;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.Log;
|
||||
import androidx.annotation.NonNull;
|
||||
import code.name.monkey.retromusic.glide.RetroMusicGlideModule;
|
||||
import com.bumptech.glide.integration.okhttp3.OkHttpLibraryGlideModule;
|
||||
import java.lang.Class;
|
||||
import java.lang.Override;
|
||||
import java.lang.SuppressWarnings;
|
||||
import java.util.Collections;
|
||||
import java.util.Set;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
final class GeneratedAppGlideModuleImpl extends GeneratedAppGlideModule {
|
||||
private final RetroMusicGlideModule appGlideModule;
|
||||
|
||||
GeneratedAppGlideModuleImpl() {
|
||||
appGlideModule = new RetroMusicGlideModule();
|
||||
if (Log.isLoggable("Glide", Log.DEBUG)) {
|
||||
Log.d("Glide", "Discovered AppGlideModule from annotation: code.name.monkey.retromusic.glide.RetroMusicGlideModule");
|
||||
Log.d("Glide", "Discovered LibraryGlideModule from annotation: com.bumptech.glide.integration.okhttp3.OkHttpLibraryGlideModule");
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void applyOptions(@NonNull Context context, @NonNull GlideBuilder builder) {
|
||||
appGlideModule.applyOptions(context, builder);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerComponents(@NonNull Context context, @NonNull Glide glide,
|
||||
@NonNull Registry registry) {
|
||||
new OkHttpLibraryGlideModule().registerComponents(context, glide, registry);
|
||||
appGlideModule.registerComponents(context, glide, registry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isManifestParsingEnabled() {
|
||||
return appGlideModule.isManifestParsingEnabled();
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
public Set<Class<?>> getExcludedModuleClasses() {
|
||||
return Collections.emptySet();
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
GeneratedRequestManagerFactory getRequestManagerFactory() {
|
||||
return new GeneratedRequestManagerFactory();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
package com.bumptech.glide;
|
||||
|
||||
import android.content.Context;
|
||||
import androidx.annotation.NonNull;
|
||||
import code.name.monkey.retromusic.glide.GlideRequests;
|
||||
import com.bumptech.glide.manager.Lifecycle;
|
||||
import com.bumptech.glide.manager.RequestManagerRetriever;
|
||||
import com.bumptech.glide.manager.RequestManagerTreeNode;
|
||||
import java.lang.Override;
|
||||
|
||||
/**
|
||||
* Generated code, do not modify
|
||||
*/
|
||||
final class GeneratedRequestManagerFactory implements RequestManagerRetriever.RequestManagerFactory {
|
||||
@Override
|
||||
@NonNull
|
||||
public RequestManager build(@NonNull Glide glide, @NonNull Lifecycle lifecycle,
|
||||
@NonNull RequestManagerTreeNode treeNode, @NonNull Context context) {
|
||||
return new GlideRequests(glide, lifecycle, treeNode, context);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
package com.bumptech.glide.annotation.compiler;
|
||||
|
||||
@Index(
|
||||
extensions = "code.name.monkey.retromusic.glide.RetroGlideExtension"
|
||||
)
|
||||
public class GlideIndexer_GlideExtension_code_name_monkey_retromusic_glide_RetroGlideExtension {
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue