public ToolbarActionBar(Toolbar toolbar, CharSequence title, Callback callback) { this.mDecorToolbar = new ToolbarWidgetWrapper(toolbar, false); this.mWindowCallback = new ToolbarCallbackWrapper(callback); this.mDecorToolbar.setWindowCallback(this.mWindowCallback); toolbar.setOnMenuItemClickListener(this.mMenuClicker); this.mDecorToolbar.setWindowTitle(title); }
final ActionMode startAsSupportActionMode(ActionMode.Callback callback) { CallbackWrapper callbackWrapper = new CallbackWrapper(AppCompatDelegateImplV14.this.mContext, callback); android.support.v7.view.ActionMode supportActionMode = AppCompatDelegateImplV14.this.startSupportActionMode(callbackWrapper); if (supportActionMode != null) { return callbackWrapper.getActionModeWrapper(supportActionMode); } return null; }
public ActionMode onWindowStartingActionMode(ActionMode.Callback callback, int type) { if (AppCompatDelegateImplV23.this.isHandleNativeActionModesEnabled()) { switch (type) { case 0: return startAsSupportActionMode(callback); } } return super.onWindowStartingActionMode(callback, type); }
public void setMenu(Menu menu, MenuPresenter.Callback cb) { if (this.mActionMenuPresenter == null) { this.mActionMenuPresenter = new ActionMenuPresenter(this.mToolbar.getContext()); this.mActionMenuPresenter.setId(R.id.action_menu_presenter); } this.mActionMenuPresenter.setCallback(cb); this.mToolbar.setMenu((MenuBuilder) menu, this.mActionMenuPresenter); }
public boolean m1757a(C0264i c0264i) { Callback o = this.f622a.m1658o(); if (o != null) { o.onMenuOpened(C0243l.AppCompatTheme_ratingBarStyleSmall, c0264i); } return true; }
public boolean m1775a(C0264i c0264i) { if (c0264i == null && this.f654a.h) { Callback o = this.f654a.m1658o(); if (!(o == null || this.f654a.m1657n())) { o.onMenuOpened(C0243l.AppCompatTheme_ratingBarStyleSmall, c0264i); } } return true; }
public ActionMode onWindowStartingActionMode(ActionMode.Callback callback, int i) { if (this.f614c.m1739m()) { switch (i) { case C0243l.View_android_theme /*0*/: return m1740a(callback); } } return super.onWindowStartingActionMode(callback, i); }
private void m1680b(C0264i c0264i) { if (!this.f581A) { this.f581A = true; this.f597r.m2303j(); Callback o = m1658o(); if (!(o == null || m1657n())) { o.onPanelClosed(C0243l.AppCompatTheme_ratingBarStyleSmall, c0264i); } this.f581A = false; } }
public boolean m1711a(C0264i c0264i, MenuItem menuItem) { Callback o = m1658o(); if (!(o == null || m1657n())) { aq a = m1665a(c0264i.m2142p()); if (a != null) { return o.onMenuItemSelected(a.f635a, menuItem); } } return false; }
public android.view.ActionMode onWindowStartingActionMode(android.view.ActionMode.Callback paramCallback) { if (AppCompatDelegateImplV14.this.mHandleNativeActionModes) { return startAsSupportActionMode(paramCallback); } return super.onWindowStartingActionMode(paramCallback); }
final void checkCloseActionMenu(MenuBuilder paramMenuBuilder) { if (this.mClosingActionMenu) { return; } this.mClosingActionMenu = true; this.mDecorContentParent.dismissPopups(); Window.Callback localCallback = this.mWindow.getCallback(); if ((localCallback != null) && (!this.mIsDestroyed)) { localCallback.onPanelClosed(108, paramMenuBuilder); } this.mClosingActionMenu = false; }
public final boolean onMenuItemSelected(MenuBuilder paramMenuBuilder, MenuItem paramMenuItem) { Window.Callback localCallback = this.mWindow.getCallback(); if ((localCallback != null) && (!this.mIsDestroyed)) { PanelFeatureState localPanelFeatureState = findMenuPanel(paramMenuBuilder.getRootMenu()); if (localPanelFeatureState != null) { return localCallback.onMenuItemSelected(localPanelFeatureState.featureId, paramMenuItem); } } return false; }
public final void onMenuModeChange(MenuBuilder paramMenuBuilder) { if ((this.mDecorContentParent != null) && (this.mDecorContentParent.canShowOverflowMenu()) && ((!ViewConfigurationCompat.hasPermanentMenuKey(ViewConfiguration.get(this.mContext))) || (this.mDecorContentParent.isOverflowMenuShowPending()))) { Window.Callback localCallback = this.mWindow.getCallback(); if (!this.mDecorContentParent.isOverflowMenuShowing()) { if ((localCallback != null) && (!this.mIsDestroyed)) { if ((this.mInvalidatePanelMenuPosted) && ((0x1 & this.mInvalidatePanelMenuFeatures) != 0)) { this.mWindowDecor.removeCallbacks(this.mInvalidatePanelMenuRunnable); this.mInvalidatePanelMenuRunnable.run(); } PanelFeatureState localPanelFeatureState2 = getPanelState$5103c037(0); if ((localPanelFeatureState2.menu != null) && (!localPanelFeatureState2.refreshMenuContent) && (localCallback.onPreparePanel(0, localPanelFeatureState2.createdPanelView, localPanelFeatureState2.menu))) { localCallback.onMenuOpened(108, localPanelFeatureState2.menu); this.mDecorContentParent.showOverflowMenu(); } } } do { return; this.mDecorContentParent.hideOverflowMenu(); } while (this.mIsDestroyed); localCallback.onPanelClosed(108, getPanelState$5103c037(0).menu); return; } PanelFeatureState localPanelFeatureState1 = getPanelState$5103c037(0); localPanelFeatureState1.refreshDecorView = true; closePanel(localPanelFeatureState1, false); openPanel(localPanelFeatureState1, null); }
public final boolean onOpenSubMenu(MenuBuilder paramMenuBuilder) { Window.Callback localCallback = AppCompatDelegateImplV7.this.mWindow.getCallback(); if (localCallback != null) { localCallback.onMenuOpened(108, paramMenuBuilder); } return true; }
public final boolean onOpenSubMenu(MenuBuilder paramMenuBuilder) { if ((paramMenuBuilder == null) && (AppCompatDelegateImplV7.this.mHasActionBar)) { Window.Callback localCallback = AppCompatDelegateImplV7.this.mWindow.getCallback(); if ((localCallback != null) && (!AppCompatDelegateImplV7.this.mIsDestroyed)) { localCallback.onMenuOpened(108, paramMenuBuilder); } } return true; }
public final ActionMode onWindowStartingActionMode(ActionMode.Callback paramCallback, int paramInt) { if (AppCompatDelegateImplV23.this.mHandleNativeActionModes) {} switch (paramInt) { default: return super.onWindowStartingActionMode(paramCallback, paramInt); } return startAsSupportActionMode(paramCallback); }
public WindowCallbackWrapper(Window.Callback paramCallback) { if (paramCallback == null) { throw new IllegalArgumentException("Window callback may not be null"); } this.mWrapped = paramCallback; }
public ToolbarActionBar(Toolbar paramToolbar, CharSequence paramCharSequence, Window.Callback paramCallback) { this.mDecorToolbar = new ToolbarWidgetWrapper(paramToolbar, false); this.mWindowCallback = new ToolbarCallbackWrapper(paramCallback); this.mDecorToolbar.setWindowCallback(this.mWindowCallback); paramToolbar.setOnMenuItemClickListener(this.mMenuClicker); this.mDecorToolbar.setWindowTitle(paramCharSequence); }
public WindowCallbackWrapper(Callback wrapped) { if (wrapped == null) { throw new IllegalArgumentException("Window callback may not be null"); } this.mWrapped = wrapped; }
public ActionMode onWindowStartingActionMode(ActionMode.Callback callback) { return this.mWrapped.onWindowStartingActionMode(callback); }
public ActionMode onWindowStartingActionMode(ActionMode.Callback callback, int type) { return this.mWrapped.onWindowStartingActionMode(callback, type); }
public ToolbarCallbackWrapper(Callback wrapped) { super(wrapped); }
public Callback getWrappedWindowCallback() { return this.mWindowCallback; }
AppCompatWindowCallbackV14(Callback callback) { super(callback); }
public ActionMode onWindowStartingActionMode(ActionMode.Callback callback) { if (AppCompatDelegateImplV14.this.isHandleNativeActionModesEnabled()) { return startAsSupportActionMode(callback); } return super.onWindowStartingActionMode(callback); }
Callback wrapWindowCallback(Callback callback) { return new AppCompatWindowCallbackV14(callback); }
AppCompatWindowCallbackBase(Callback callback) { super(callback); }
Callback wrapWindowCallback(Callback callback) { return new AppCompatWindowCallbackBase(callback); }
final Callback getWindowCallback() { return this.mWindow.getCallback(); }
AppCompatWindowCallbackV23(Callback callback) { super(callback); }
public ActionMode onWindowStartingActionMode(ActionMode.Callback callback) { return null; }
Callback wrapWindowCallback(Callback callback) { return new AppCompatWindowCallbackV23(callback); }
public void setWindowCallback(Callback cb) { pullChildren(); this.mDecorToolbar.setWindowCallback(cb); }
public void setMenu(Menu menu, MenuPresenter.Callback cb) { pullChildren(); this.mDecorToolbar.setMenu(menu, cb); }
public void setWindowCallback(Callback cb) { this.mWindowCallback = cb; }