Java Code Examples for android.view.Window.Callback

The following are top voted examples for showing how to use android.view.Window.Callback. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: boohee_v5.6   File: ToolbarActionBar.java   View source code 5 votes vote down vote up
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);
}
 
Example 2
Project: boohee_v5.6   File: AppCompatDelegateImplV14.java   View source code 5 votes vote down vote up
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;
}
 
Example 3
Project: boohee_v5.6   File: AppCompatDelegateImplV23.java   View source code 5 votes vote down vote up
public ActionMode onWindowStartingActionMode(ActionMode.Callback callback, int type) {
    if (AppCompatDelegateImplV23.this.isHandleNativeActionModesEnabled()) {
        switch (type) {
            case 0:
                return startAsSupportActionMode(callback);
        }
    }
    return super.onWindowStartingActionMode(callback, type);
}
 
Example 4
Project: boohee_v5.6   File: ToolbarWidgetWrapper.java   View source code 5 votes vote down vote up
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);
}
 
Example 5
Project: solved-hacking-problem   File: am.java   View source code 5 votes vote down vote up
public boolean m1757a(C0264i c0264i) {
    Callback o = this.f622a.m1658o();
    if (o != null) {
        o.onMenuOpened(C0243l.AppCompatTheme_ratingBarStyleSmall, c0264i);
    }
    return true;
}
 
Example 6
Project: solved-hacking-problem   File: ar.java   View source code 5 votes vote down vote up
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;
}
 
Example 7
Project: solved-hacking-problem   File: ad.java   View source code 5 votes vote down vote up
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);
}
 
Example 8
Project: solved-hacking-problem   File: ae.java   View source code 5 votes vote down vote up
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;
    }
}
 
Example 9
Project: solved-hacking-problem   File: ae.java   View source code 5 votes vote down vote up
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;
}
 
Example 10
Project: solved-hacking-problem   File: am.java   View source code 5 votes vote down vote up
public boolean m1757a(C0264i c0264i) {
    Callback o = this.f622a.m1658o();
    if (o != null) {
        o.onMenuOpened(C0243l.AppCompatTheme_ratingBarStyleSmall, c0264i);
    }
    return true;
}
 
Example 11
Project: solved-hacking-problem   File: ar.java   View source code 5 votes vote down vote up
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;
}
 
Example 12
Project: solved-hacking-problem   File: ad.java   View source code 5 votes vote down vote up
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);
}
 
Example 13
Project: solved-hacking-problem   File: ae.java   View source code 5 votes vote down vote up
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;
    }
}
 
Example 14
Project: solved-hacking-problem   File: ae.java   View source code 5 votes vote down vote up
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;
}
 
Example 15
Project: FMTech   File: AppCompatDelegateImplV14.java   View source code 5 votes vote down vote up
public android.view.ActionMode onWindowStartingActionMode(android.view.ActionMode.Callback paramCallback)
{
  if (AppCompatDelegateImplV14.this.mHandleNativeActionModes) {
    return startAsSupportActionMode(paramCallback);
  }
  return super.onWindowStartingActionMode(paramCallback);
}
 
Example 16
Project: FMTech   File: AppCompatDelegateImplV7.java   View source code 5 votes vote down vote up
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;
}
 
Example 17
Project: FMTech   File: AppCompatDelegateImplV7.java   View source code 5 votes vote down vote up
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;
}
 
Example 18
Project: FMTech   File: AppCompatDelegateImplV7.java   View source code 5 votes vote down vote up
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);
}
 
Example 19
Project: FMTech   File: AppCompatDelegateImplV7.java   View source code 5 votes vote down vote up
public final boolean onOpenSubMenu(MenuBuilder paramMenuBuilder)
{
  Window.Callback localCallback = AppCompatDelegateImplV7.this.mWindow.getCallback();
  if (localCallback != null) {
    localCallback.onMenuOpened(108, paramMenuBuilder);
  }
  return true;
}
 
Example 20
Project: FMTech   File: AppCompatDelegateImplV7.java   View source code 5 votes vote down vote up
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;
}
 
Example 21
Project: FMTech   File: AppCompatDelegateImplV23.java   View source code 5 votes vote down vote up
public final ActionMode onWindowStartingActionMode(ActionMode.Callback paramCallback, int paramInt)
{
  if (AppCompatDelegateImplV23.this.mHandleNativeActionModes) {}
  switch (paramInt)
  {
  default: 
    return super.onWindowStartingActionMode(paramCallback, paramInt);
  }
  return startAsSupportActionMode(paramCallback);
}
 
Example 22
Project: FMTech   File: WindowCallbackWrapper.java   View source code 5 votes vote down vote up
public WindowCallbackWrapper(Window.Callback paramCallback)
{
  if (paramCallback == null) {
    throw new IllegalArgumentException("Window callback may not be null");
  }
  this.mWrapped = paramCallback;
}
 
Example 23
Project: FMTech   File: ToolbarActionBar.java   View source code 5 votes vote down vote up
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);
}
 
Example 24
Project: boohee_v5.6   File: WindowCallbackWrapper.java   View source code 4 votes vote down vote up
public WindowCallbackWrapper(Callback wrapped) {
    if (wrapped == null) {
        throw new IllegalArgumentException("Window callback may not be null");
    }
    this.mWrapped = wrapped;
}
 
Example 25
Project: boohee_v5.6   File: WindowCallbackWrapper.java   View source code 4 votes vote down vote up
public ActionMode onWindowStartingActionMode(ActionMode.Callback callback) {
    return this.mWrapped.onWindowStartingActionMode(callback);
}
 
Example 26
Project: boohee_v5.6   File: WindowCallbackWrapper.java   View source code 4 votes vote down vote up
public ActionMode onWindowStartingActionMode(ActionMode.Callback callback, int type) {
    return this.mWrapped.onWindowStartingActionMode(callback, type);
}
 
Example 27
Project: boohee_v5.6   File: ToolbarActionBar.java   View source code 4 votes vote down vote up
public ToolbarCallbackWrapper(Callback wrapped) {
    super(wrapped);
}
 
Example 28
Project: boohee_v5.6   File: ToolbarActionBar.java   View source code 4 votes vote down vote up
public Callback getWrappedWindowCallback() {
    return this.mWindowCallback;
}
 
Example 29
Project: boohee_v5.6   File: AppCompatDelegateImplV14.java   View source code 4 votes vote down vote up
AppCompatWindowCallbackV14(Callback callback) {
    super(callback);
}
 
Example 30
Project: boohee_v5.6   File: AppCompatDelegateImplV14.java   View source code 4 votes vote down vote up
public ActionMode onWindowStartingActionMode(ActionMode.Callback callback) {
    if (AppCompatDelegateImplV14.this.isHandleNativeActionModesEnabled()) {
        return startAsSupportActionMode(callback);
    }
    return super.onWindowStartingActionMode(callback);
}
 
Example 31
Project: boohee_v5.6   File: AppCompatDelegateImplV14.java   View source code 4 votes vote down vote up
Callback wrapWindowCallback(Callback callback) {
    return new AppCompatWindowCallbackV14(callback);
}
 
Example 32
Project: boohee_v5.6   File: AppCompatDelegateImplBase.java   View source code 4 votes vote down vote up
AppCompatWindowCallbackBase(Callback callback) {
    super(callback);
}
 
Example 33
Project: boohee_v5.6   File: AppCompatDelegateImplBase.java   View source code 4 votes vote down vote up
Callback wrapWindowCallback(Callback callback) {
    return new AppCompatWindowCallbackBase(callback);
}
 
Example 34
Project: boohee_v5.6   File: AppCompatDelegateImplBase.java   View source code 4 votes vote down vote up
final Callback getWindowCallback() {
    return this.mWindow.getCallback();
}
 
Example 35
Project: boohee_v5.6   File: AppCompatDelegateImplV23.java   View source code 4 votes vote down vote up
AppCompatWindowCallbackV23(Callback callback) {
    super(callback);
}
 
Example 36
Project: boohee_v5.6   File: AppCompatDelegateImplV23.java   View source code 4 votes vote down vote up
public ActionMode onWindowStartingActionMode(ActionMode.Callback callback) {
    return null;
}
 
Example 37
Project: boohee_v5.6   File: AppCompatDelegateImplV23.java   View source code 4 votes vote down vote up
Callback wrapWindowCallback(Callback callback) {
    return new AppCompatWindowCallbackV23(callback);
}
 
Example 38
Project: boohee_v5.6   File: ActionBarOverlayLayout.java   View source code 4 votes vote down vote up
public void setWindowCallback(Callback cb) {
    pullChildren();
    this.mDecorToolbar.setWindowCallback(cb);
}
 
Example 39
Project: boohee_v5.6   File: ActionBarOverlayLayout.java   View source code 4 votes vote down vote up
public void setMenu(Menu menu, MenuPresenter.Callback cb) {
    pullChildren();
    this.mDecorToolbar.setMenu(menu, cb);
}
 
Example 40
Project: boohee_v5.6   File: ToolbarWidgetWrapper.java   View source code 4 votes vote down vote up
public void setWindowCallback(Callback cb) {
    this.mWindowCallback = cb;
}