package com.ss.android.ugc.aweme.ttsvoice.repo;

import X.0CB;
import X.0CH;
import X.0CN;
import X.6Is;
import X.C5245OOa;
import com.bytedance.covode.number.Covode;

public final class TTSVoiceRecordService$destroyObserver$1 implements 6Is {
    public final /* synthetic */ TTSVoiceRecordService LIZ;

    static {
        Covode.recordClassIndex(120691);
    }

    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.LIZJ = false;
        C5245OOa oOa = this.LIZ.LJ;
        if (oOa != null) {
            oOa.LIZ();
        }
    }

    public TTSVoiceRecordService$destroyObserver$1(TTSVoiceRecordService tTSVoiceRecordService) {
        this.LIZ = tTSVoiceRecordService;
    }
}
