package d.h.b;

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

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

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

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

    public f(Object obj, Object obj2) {
        this.f2574f = obj;
        this.f2575m = obj2;
    }

    @Override // java.lang.Runnable
    public void run() {
        try {
            Method method = g.f2578d;
            if (method != null) {
                method.invoke(this.f2574f, this.f2575m, Boolean.FALSE, "AppCompat recreation");
            } else {
                g.f2579e.invoke(this.f2574f, this.f2575m, 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);
        }
    }
}
