Esempio n. 1
0
  public void setNavigationIconHints(int hints, boolean force) {
    if (!force && hints == mNavigationIconHints) return;
    final boolean backAlt = (hints & StatusBarManager.NAVIGATION_HINT_BACK_ALT) != 0;
    if ((mNavigationIconHints & StatusBarManager.NAVIGATION_HINT_BACK_ALT) != 0 && !backAlt) {
      mTransitionListener.onBackAltCleared();
    }

    mNavigationIconHints = hints;

    ((ImageView) getBackButton())
        .setImageResource(
            backAlt ? SystemR.drawable.ic_sysbar_back_ime : SystemR.drawable.ic_sysbar_back);

    setDisabledFlags(mDisabledFlags, true);
  }
Esempio n. 2
0
 public void setDisabledFlags(int disabledFlags) {
   setDisabledFlags(disabledFlags, false);
 }
Esempio n. 3
0
 public void notifyScreenOn(boolean screenOn) {
   mScreenOn = screenOn;
   setDisabledFlags(mDisabledFlags, true);
 }