discord-jadx/app/src/main/java/com/discord/utilities/images/MGImagesConfig$getAppBitmap...

24 lines
1.2 KiB
Java

package com.discord.utilities.images;
import android.app.ActivityManager;
import com.facebook.imagepipeline.cache.DefaultBitmapMemoryCacheParamsSupplier;
import com.facebook.imagepipeline.cache.MemoryCacheParams;
import java.util.concurrent.TimeUnit;
/* compiled from: MGImagesConfig.kt */
public final class MGImagesConfig$getAppBitmapMemoryCacheParamsSupplier$1 extends DefaultBitmapMemoryCacheParamsSupplier {
public final /* synthetic */ ActivityManager $activityManager;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public MGImagesConfig$getAppBitmapMemoryCacheParamsSupplier$1(ActivityManager activityManager, ActivityManager activityManager2) {
super(activityManager2);
this.$activityManager = activityManager;
}
@Override // com.facebook.imagepipeline.cache.DefaultBitmapMemoryCacheParamsSupplier, com.facebook.common.internal.Supplier
public MemoryCacheParams get() {
MemoryCacheParams memoryCacheParams = super.get();
int i = memoryCacheParams.a;
return new MemoryCacheParams(i, memoryCacheParams.b, memoryCacheParams.f2292c, memoryCacheParams.d, i / 3, TimeUnit.MINUTES.toMillis(5));
}
}