package c.f.b;

import android.util.Log;
import java.lang.reflect.Method;

/* JADX INFO: compiled from: ActivityRecreator.java */
/* JADX INFO: loaded from: classes.dex */
public class f implements Runnable {

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ Object f1279b;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final /* synthetic */ Object f1280e;

    public f(Object obj, Object obj2) {
        this.f1279b = obj;
        this.f1280e = obj2;
    }

    @Override // java.lang.Runnable
    public void run() {
        try {
            Method method = g.f1283d;
            if (method != null) {
                method.invoke(this.f1279b, this.f1280e, Boolean.FALSE, "AppCompat recreation");
            } else {
                g.f1284e.invoke(this.f1279b, this.f1280e, Boolean.FALSE);
            }
        } catch (RuntimeException e2) {
            if (e2.getClass() == RuntimeException.class && e2.getMessage() != null && e2.getMessage().startsWith("Unable to stop")) {
                throw e2;
            }
        } catch (Throwable th) {
            Log.e("ActivityRecreator", "Exception while invoking performStopActivity", th);
        }
    }
}
