50度灰 v5.8.2版本的 MD5 值为:9fe3d350fdc75fa1a3ec45509fa0107e

以下内容为反编译后的 e.java 源代码,内容仅作参考


package com.luck.picture.lib.widget.longimage;

import android.graphics.Bitmap;
import android.graphics.Rect;
import android.net.Uri;
import java.io.File;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.util.Objects;
public final class e {
    static final String f4438a = "file:///";
    static final String f4439b = "file:///android_asset/";
    private final Uri f4440c;
    private final Bitmap f4441d;
    private final Integer f4442e;
    private boolean f4443f;
    private int f4444g;
    private int h;
    private Rect i;
    private boolean j;

    private e(Bitmap bitmap, boolean z) {
        this.f4441d = bitmap;
        this.f4440c = null;
        this.f4442e = null;
        this.f4443f = false;
        this.f4444g = bitmap.getWidth();
        this.h = bitmap.getHeight();
        this.j = z;
    }

    public static e a(String str) {
        Objects.requireNonNull(str, "Asset name must not be null");
        return t(f4439b + str);
    }

    public static e b(Bitmap bitmap) {
        Objects.requireNonNull(bitmap, "Bitmap must not be null");
        return new e(bitmap, false);
    }

    public static e c(Bitmap bitmap) {
        Objects.requireNonNull(bitmap, "Bitmap must not be null");
        return new e(bitmap, true);
    }

    public static e n(int i) {
        return new e(i);
    }

    private void o() {
        Rect rect = this.i;
        if (rect != null) {
            this.f4443f = true;
            this.f4444g = rect.width();
            this.h = this.i.height();
        }
    }

    public static e s(Uri uri) {
        Objects.requireNonNull(uri, "Uri must not be null");
        return new e(uri);
    }

    public static e t(String str) {
        Objects.requireNonNull(str, "Uri must not be null");
        if (!str.contains("://")) {
            if (str.startsWith("/")) {
                str = str.substring(1);
            }
            str = f4438a + str;
        }
        return new e(Uri.parse(str));
    }

    public e d(int i, int i2) {
        if (this.f4441d == null) {
            this.f4444g = i;
            this.h = i2;
        }
        o();
        return this;
    }

    public final Bitmap e() {
        return this.f4441d;
    }

    public final Integer f() {
        return this.f4442e;
    }

    public final int g() {
        return this.h;
    }

    public final Rect h() {
        return this.i;
    }

    public final int i() {
        return this.f4444g;
    }

    public final boolean j() {
        return this.f4443f;
    }

    public final Uri k() {
        return this.f4440c;
    }

    public final boolean l() {
        return this.j;
    }

    public e m(Rect rect) {
        this.i = rect;
        o();
        return this;
    }

    public e p(boolean z) {
        this.f4443f = z;
        return this;
    }

    public e q() {
        return p(false);
    }

    public e r() {
        return p(true);
    }

    private e(Uri uri) {
        String uri2 = uri.toString();
        if (uri2.startsWith(f4438a) && !new File(uri2.substring(7)).exists()) {
            try {
                uri = Uri.parse(URLDecoder.decode(uri2, "UTF-8"));
            } catch (UnsupportedEncodingException unused) {
            }
        }
        this.f4441d = null;
        this.f4440c = uri;
        this.f4442e = null;
        this.f4443f = true;
    }

    private e(int i) {
        this.f4441d = null;
        this.f4440c = null;
        this.f4442e = Integer.valueOf(i);
        this.f4443f = true;
    }
}