package androidx.core.view; import android.content.Context; import android.util.Log; import android.view.MenuItem; import android.view.SubMenu; import android.view.View; /* loaded from: classes.dex */ public abstract class ActionProvider { private VisibilityListener a; public interface SubUiVisibilityListener { } public interface VisibilityListener { void onActionProviderVisibilityChanged(boolean z); } public ActionProvider(Context context) { } public View a(MenuItem menuItem) { return c(); } public void a(SubMenu subMenu) { } public void a(SubUiVisibilityListener subUiVisibilityListener) { } public boolean a() { return false; } public boolean b() { return true; } public abstract View c(); public boolean d() { return false; } public boolean e() { return false; } public void f() { this.a = null; } public void a(VisibilityListener visibilityListener) { if (this.a != null && visibilityListener != null) { Log.w("ActionProvider(support)", "setVisibilityListener: Setting a new ActionProvider.VisibilityListener when one is already set. Are you reusing this " + getClass().getSimpleName() + " instance while it is still in use somewhere else?"); } this.a = visibilityListener; } }