package com.ss.android.ug.bus;

import X.0CB;
import X.0CH;
import X.0CN;
import X.6Is;
import X.C2130Pr5;
import X.C2132Pr7;
import com.bytedance.covode.number.Covode;
import java.lang.reflect.Type;
import java.util.concurrent.ConcurrentHashMap;

public class UgCallbackCenter$2 implements 6Is {
    public final /* synthetic */ ConcurrentHashMap LIZ;
    public final /* synthetic */ C2132Pr7 LIZIZ;
    public final /* synthetic */ Type LIZJ;

    static {
        Covode.recordClassIndex(49784);
    }

    public final void onStateChanged(0CH r2, 0CB r3) {
        if (r3 == 0CB.ON_DESTROY) {
            onDestroy();
        }
    }

    @0CN(LIZ = 0CB.ON_DESTROY)
    public final void onDestroy() {
        this.LIZ.remove(this.LIZIZ);
        if (this.LIZ.isEmpty()) {
            C2130Pr5.LIZ.remove(this.LIZJ);
        }
    }

    public UgCallbackCenter$2(ConcurrentHashMap concurrentHashMap, C2132Pr7 pr7, Type type) {
        this.LIZ = concurrentHashMap;
        this.LIZIZ = pr7;
        this.LIZJ = type;
    }
}
