package android.support.design.widget;

import android.os.Bundle;
import android.support.v4.view.a;
import android.support.v4.view.a.b;
import android.view.View;

class c$2 extends a {
    final /* synthetic */ c nE;

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

    public final void onInitializeAccessibilityNodeInfo(View view, b bVar) {
        super.onInitializeAccessibilityNodeInfo(view, bVar);
        if (this.nE.mCancelable) {
            bVar.addAction(1048576);
            bVar.setDismissable(true);
            return;
        }
        bVar.setDismissable(false);
    }

    public final boolean performAccessibilityAction(View view, int i, Bundle bundle) {
        if (i != 1048576 || !this.nE.mCancelable) {
            return super.performAccessibilityAction(view, i, bundle);
        }
        this.nE.cancel();
        return true;
    }
}
