package com.tencent.mm.plugin.appbrand.ui;

import android.content.DialogInterface;
import android.content.DialogInterface.OnKeyListener;
import android.view.KeyEvent;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.appbrand.report.model.o;
import com.tencent.mm.plugin.appbrand.report.model.o.a;
import com.tencent.ytcommon.BuildConfig;

class AppBrandGuideUI$4 implements OnKeyListener {
    final /* synthetic */ AppBrandGuideUI iGC;

    AppBrandGuideUI$4(AppBrandGuideUI appBrandGuideUI) {
        this.iGC = appBrandGuideUI;
    }

    public final boolean onKey(DialogInterface dialogInterface, int i, KeyEvent keyEvent) {
        AppMethodBeat.i(132958);
        if (4 == i) {
            if (1 == keyEvent.getAction()) {
                o.a(a.iCu, BuildConfig.FLAVOR);
                this.iGC.finish();
            }
            AppMethodBeat.o(132958);
            return true;
        }
        AppMethodBeat.o(132958);
        return false;
    }
}
