package X6FRs_4.KNBe_11;

import android.app.Activity;
import android.app.Application;
import android.content.Context;
import android.os.Bundle;
import java.util.concurrent.atomic.AtomicBoolean;
/* compiled from: LifecycleDispatcher.java */
/* loaded from: classes.dex */
public class IMuAHx_6 {
    public static AtomicBoolean KQgRr5e_0 = new AtomicBoolean(false);

    /* compiled from: LifecycleDispatcher.java */
    /* loaded from: classes.dex */
    public static class KQgRr5e_0 extends QxJ9d_1 {
        @Override // android.app.Application.ActivityLifecycleCallbacks
        public void onActivityCreated(Activity activity, Bundle bundle) {
            NQvZgp_17.m360KQgRr5e_0(activity);
        }

        @Override // X6FRs_4.KNBe_11.QxJ9d_1, android.app.Application.ActivityLifecycleCallbacks
        public void onActivitySaveInstanceState(Activity activity, Bundle bundle) {
        }

        @Override // android.app.Application.ActivityLifecycleCallbacks
        public void onActivityStopped(Activity activity) {
        }
    }

    public static void KQgRr5e_0(Context context) {
        if (KQgRr5e_0.getAndSet(true)) {
            return;
        }
        ((Application) context.getApplicationContext()).registerActivityLifecycleCallbacks(new KQgRr5e_0());
    }
}
