package p067w;

import android.app.Activity;
import android.content.Intent;
import android.content.IntentSender;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import p069x.C1794a;

/* renamed from: w.b */
/* loaded from: classes.dex */
public class C1765b extends C1794a {

    /* renamed from: w.b$a */
    /* loaded from: classes.dex */
    public static class C1766a {
        /* renamed from: a */
        public static void m448a(Activity activity) {
            activity.finishAffinity();
        }

        /* renamed from: b */
        public static void m447b(Activity activity, Intent intent, int i, Bundle bundle) {
            activity.startActivityForResult(intent, i, bundle);
        }

        /* renamed from: c */
        public static void m446c(Activity activity, IntentSender intentSender, int i, Intent intent, int i2, int i3, int i4, Bundle bundle) {
            activity.startIntentSenderForResult(intentSender, i, intent, i2, i3, i4, bundle);
        }
    }

    /* renamed from: g */
    public static void m451g(Activity activity) {
        C1766a.m448a(activity);
    }

    /* renamed from: h */
    public static /* synthetic */ void m450h(Activity activity) {
        if (activity.isFinishing() || C1767c.m437i(activity)) {
            return;
        }
        activity.recreate();
    }

    /* renamed from: i */
    public static void m449i(final Activity activity) {
        if (Build.VERSION.SDK_INT >= 28) {
            activity.recreate();
        } else {
            new Handler(activity.getMainLooper()).post(new Runnable() { // from class: w.a
                @Override // java.lang.Runnable
                public final void run() {
                    C1765b.m450h(activity);
                }
            });
        }
    }
}