Update dependencies
Settings activity refactor
This commit is contained in:
248 files changed
+8700
-8980
No files matched your search
@@ -20,16 +20,20 @@ import android.app.ActivityManager;
|
||||
import android.content.Context;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.BitmapFactory;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
import com.hippo.streampipe.InputStreamPipe;
|
||||
import com.hippo.yorozuya.MathUtils;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
public final class BitmapUtils {
|
||||
private BitmapUtils() {}
|
||||
|
||||
public static Context sContext;
|
||||
|
||||
private BitmapUtils() {
|
||||
}
|
||||
|
||||
public static void initialize(Context context) {
|
||||
sContext = context.getApplicationContext();
|
||||
}
|
||||
@@ -46,7 +50,7 @@ public final class BitmapUtils {
|
||||
}
|
||||
|
||||
public static Bitmap decodeStream(@NonNull InputStreamPipe isp, int maxWidth, int maxHeight,
|
||||
int pixels, boolean checkMemory, boolean justCalc, int[] sampleSize) {
|
||||
int pixels, boolean checkMemory, boolean justCalc, int[] sampleSize) {
|
||||
try {
|
||||
isp.obtain();
|
||||
|
||||
|
||||
Reference in new issue
Block a user