예제 #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);
  }
예제 #2
0
 public void setDisabledFlags(int disabledFlags) {
   setDisabledFlags(disabledFlags, false);
 }
예제 #3
0
 public void notifyScreenOn(boolean screenOn) {
   mScreenOn = screenOn;
   setDisabledFlags(mDisabledFlags, true);
 }