package com.tencent.mm.plugin.emoji.e;

import android.widget.Toast;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.g.a.cv;
import com.tencent.mm.kernel.g;
import com.tencent.mm.plugin.emoji.model.j;
import com.tencent.mm.plugin.report.service.h;
import com.tencent.mm.sdk.b.c;
import com.tencent.mm.sdk.platformtools.ah;
import com.tencent.mm.storage.ac.a;
import com.tencent.ytcommon.BuildConfig;

class c$9 extends c<cv> {
    final /* synthetic */ c kTD;

    c$9(c cVar) {
        this.kTD = cVar;
        AppMethodBeat.i(52843);
        this.xxI = cv.class.getName().hashCode();
        AppMethodBeat.o(52843);
    }

    private static boolean a(cv cvVar) {
        AppMethodBeat.i(52844);
        if (cvVar != null && (cvVar instanceof cv)) {
            boolean z = cvVar.cvX.enable;
            g.RP().Ry().set(a.xJt, Boolean.valueOf(z));
            j.bkm().kUC = z;
            if (z) {
                Toast.makeText(ah.getContext(), 2131299039, 0).show();
            } else {
                h.pYm.e(12953, new Object[]{Integer.valueOf(2), BuildConfig.FLAVOR});
                Toast.makeText(ah.getContext(), 2131299037, 0).show();
            }
        }
        AppMethodBeat.o(52844);
        return false;
    }
}
