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


package com.huawei.updatesdk.a.b.b;

import android.content.Intent;
import android.os.Bundle;
import com.huawei.updatesdk.a.a.a;

public final class b {
    private Intent a;

    private b(Intent intent) {
        this.a = intent;
    }

    public static b a(Intent intent) {
        return new b(intent);
    }

    public final int a(String str, int i) {
        if (d()) {
            try {
                return this.a.getIntExtra(str, i);
            } catch (Exception unused) {
                a.a("SecureIntent", "getIntExtra exception!");
            }
        }
        return i;
    }

    public final String a() {
        String action;
        return (!d() || (action = this.a.getAction()) == null) ? "" : action;
    }

    public final String a(String str) {
        if (!d()) {
            return "";
        }
        try {
            return this.a.getStringExtra(str);
        } catch (Exception unused) {
            a.a("SecureIntent", "getStringExtra exception!");
            return "";
        }
    }

    public final boolean a(String str, boolean z) {
        if (d()) {
            try {
                return this.a.getBooleanExtra(str, z);
            } catch (Exception unused) {
                a.a("SecureIntent", "getBooleanExtra exception!");
            }
        }
        return z;
    }

    public final long b(String str, int i) {
        if (d()) {
            try {
                return this.a.getLongExtra(str, (long) i);
            } catch (Exception unused) {
                a.a("SecureIntent", "getIntExtra exception!");
            }
        }
        return (long) i;
    }

    public final Bundle b() {
        if (d()) {
            return this.a.getExtras();
        }
        return null;
    }

    public final Intent c() {
        return this.a;
    }

    public final boolean d() {
        return this.a != null;
    }
}