大漢易經書院.apk(点击下载) / AppSettingsDialog.java


package pub.devrel.easypermissions;

import android.app.Activity;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.v4.app.Fragment;
import android.support.v7.app.b;
import android.text.TextUtils;
import pub.devrel.easypermissions.d;

public class AppSettingsDialog implements Parcelable {
    public static final Parcelable.Creator<AppSettingsDialog> CREATOR = new Parcelable.Creator<AppSettingsDialog>() {
        /* class pub.devrel.easypermissions.AppSettingsDialog.AnonymousClass1 */

        /* renamed from: ʻ  reason: contains not printable characters */
        public AppSettingsDialog createFromParcel(Parcel parcel) {
            return new AppSettingsDialog(parcel);
        }

        /* renamed from: ʻ  reason: contains not printable characters */
        public AppSettingsDialog[] newArray(int i) {
            return new AppSettingsDialog[i];
        }
    };

    /* renamed from: ʻ  reason: contains not printable characters */
    private final int f7782;

    /* renamed from: ʼ  reason: contains not printable characters */
    private final String f7783;

    /* renamed from: ʽ  reason: contains not printable characters */
    private final String f7784;

    /* renamed from: ʾ  reason: contains not printable characters */
    private final String f7785;

    /* renamed from: ʿ  reason: contains not printable characters */
    private final String f7786;

    /* renamed from: ˆ  reason: contains not printable characters */
    private final int f7787;

    /* renamed from: ˈ  reason: contains not printable characters */
    private final int f7788;

    /* renamed from: ˉ  reason: contains not printable characters */
    private Object f7789;

    /* renamed from: ˊ  reason: contains not printable characters */
    private Context f7790;

    public int describeContents() {
        return 0;
    }

    private AppSettingsDialog(Parcel parcel) {
        this.f7782 = parcel.readInt();
        this.f7783 = parcel.readString();
        this.f7784 = parcel.readString();
        this.f7785 = parcel.readString();
        this.f7786 = parcel.readString();
        this.f7787 = parcel.readInt();
        this.f7788 = parcel.readInt();
    }

    private AppSettingsDialog(Object obj, int i, String str, String str2, String str3, String str4, int i2, int i3) {
        m9886(obj);
        this.f7782 = i;
        this.f7783 = str;
        this.f7784 = str2;
        this.f7785 = str3;
        this.f7786 = str4;
        this.f7787 = i2;
        this.f7788 = i3;
    }

    /* renamed from: ʻ  reason: contains not printable characters */
    static AppSettingsDialog m9884(Intent intent, Activity activity) {
        AppSettingsDialog appSettingsDialog = (AppSettingsDialog) intent.getParcelableExtra("extra_app_settings");
        appSettingsDialog.m9886(activity);
        return appSettingsDialog;
    }

    /* renamed from: ʻ  reason: contains not printable characters */
    private void m9886(Object obj) {
        this.f7789 = obj;
        if (obj instanceof Activity) {
            this.f7790 = (Activity) obj;
        } else if (obj instanceof Fragment) {
            this.f7790 = ((Fragment) obj).m1559();
        } else {
            throw new IllegalStateException("Unknown object: " + obj);
        }
    }

    /* renamed from: ʻ  reason: contains not printable characters */
    private void m9885(Intent intent) {
        Object obj = this.f7789;
        if (obj instanceof Activity) {
            ((Activity) obj).startActivityForResult(intent, this.f7787);
        } else if (obj instanceof Fragment) {
            ((Fragment) obj).m1486(intent, this.f7787);
        }
    }

    /* renamed from: ʻ  reason: contains not printable characters */
    public void m9888() {
        m9885(AppSettingsDialogHolderActivity.m9897(this.f7790, this));
    }

    /* access modifiers changed from: package-private */
    /* renamed from: ʻ  reason: contains not printable characters */
    public b m9887(DialogInterface.OnClickListener onClickListener, DialogInterface.OnClickListener onClickListener2) {
        b.a aVar;
        int i = this.f7782;
        if (i > 0) {
            aVar = new b.a(this.f7790, i);
        } else {
            aVar = new b.a(this.f7790);
        }
        return aVar.m3695(false).m3693(this.f7784).m3698(this.f7783).m3694(this.f7785, onClickListener).m3699(this.f7786, onClickListener2).m3701();
    }

    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeInt(this.f7782);
        parcel.writeString(this.f7783);
        parcel.writeString(this.f7784);
        parcel.writeString(this.f7785);
        parcel.writeString(this.f7786);
        parcel.writeInt(this.f7787);
        parcel.writeInt(this.f7788);
    }

    /* access modifiers changed from: package-private */
    /* renamed from: ʼ  reason: contains not printable characters */
    public int m9889() {
        return this.f7788;
    }

    public static class a {

        /* renamed from: ʻ  reason: contains not printable characters */
        private final Object f7791;

        /* renamed from: ʼ  reason: contains not printable characters */
        private final Context f7792;

        /* renamed from: ʽ  reason: contains not printable characters */
        private int f7793 = -1;

        /* renamed from: ʾ  reason: contains not printable characters */
        private String f7794;

        /* renamed from: ʿ  reason: contains not printable characters */
        private String f7795;

        /* renamed from: ˆ  reason: contains not printable characters */
        private String f7796;

        /* renamed from: ˈ  reason: contains not printable characters */
        private String f7797;

        /* renamed from: ˉ  reason: contains not printable characters */
        private int f7798 = -1;

        /* renamed from: ˊ  reason: contains not printable characters */
        private boolean f7799 = false;

        public a(Activity activity) {
            this.f7791 = activity;
            this.f7792 = activity;
        }

        /* renamed from: ʻ  reason: contains not printable characters */
        public a m9892(int i) {
            this.f7795 = this.f7792.getString(i);
            return this;
        }

        /* renamed from: ʼ  reason: contains not printable characters */
        public a m9894(int i) {
            this.f7794 = this.f7792.getString(i);
            return this;
        }

        /* renamed from: ʽ  reason: contains not printable characters */
        public a m9895(int i) {
            this.f7796 = this.f7792.getString(i);
            return this;
        }

        /* renamed from: ʾ  reason: contains not printable characters */
        public a m9896(int i) {
            this.f7797 = this.f7792.getString(i);
            return this;
        }

        /* renamed from: ʻ  reason: contains not printable characters */
        public AppSettingsDialog m9893() {
            this.f7794 = TextUtils.isEmpty(this.f7794) ? this.f7792.getString(d.a.rationale_ask_again) : this.f7794;
            this.f7795 = TextUtils.isEmpty(this.f7795) ? this.f7792.getString(d.a.title_settings_dialog) : this.f7795;
            this.f7796 = TextUtils.isEmpty(this.f7796) ? this.f7792.getString(17039370) : this.f7796;
            this.f7797 = TextUtils.isEmpty(this.f7797) ? this.f7792.getString(17039360) : this.f7797;
            int i = this.f7798;
            if (i <= 0) {
                i = 16061;
            }
            this.f7798 = i;
            return new AppSettingsDialog(this.f7791, this.f7793, this.f7794, this.f7795, this.f7796, this.f7797, this.f7798, this.f7799 ? 268435456 : 0);
        }
    }
}