package android.support.design.widget;

import android.content.res.TypedArray;
import android.os.Build.VERSION;
import android.view.View;
import android.view.View.OnClickListener;

class c$1 implements OnClickListener {
    final /* synthetic */ c nE;

    c$1(c cVar) {
        this.nE = cVar;
    }

    public final void onClick(View view) {
        if (this.nE.mCancelable && this.nE.isShowing()) {
            c cVar = this.nE;
            if (!cVar.nC) {
                if (VERSION.SDK_INT < 11) {
                    cVar.nB = true;
                } else {
                    TypedArray obtainStyledAttributes = cVar.getContext().obtainStyledAttributes(new int[]{16843611});
                    cVar.nB = obtainStyledAttributes.getBoolean(0, true);
                    obtainStyledAttributes.recycle();
                }
                cVar.nC = true;
            }
            if (cVar.nB) {
                this.nE.cancel();
            }
        }
    }
}
