protected void updateKeys(){
  ButtonInfo[] buttons=NavigationButtons.loadButtonMap(mContext);
  int visibleCount=0;
  for (int i=0; i < buttons.length; i++) {
    int id=BUTTON_IDS[i];
    ButtonInfo info=buttons[mVertical ? buttons.length - i - 1 : i];
    KeyButtonView button=(KeyButtonView)mParent.findViewById(id);
    boolean isSmallButton=NavigationButtons.IS_SLOT_SMALL[i];
    button.setInfo(info,mVertical,isSmallButton);
    if (!info.equals(NavigationButtons.EMPTY) && !isSmallButton) {
      visibleCount++;
    }
    button.setTranslationX(0);
    mButtonViews.set(i,button);
  }
  if (isDevicePhone(mContext)) {
    adjustPadding(visibleCount);
  }
  updateLowLights(visibleCount);
}

protected void updateKeys ( ) { ButtonInfo [ ] buttons = NavigationButtons . loadButtonMap ( mContext ) ; int visibleCount = 0 ; for ( int i = 0 ; i < buttons . length ; i ++ ) { int id = BUTTON_IDS [ i ] ; ButtonInfo info = buttons [ mVertical ? buttons . length - i - 1 : i ] ; KeyButtonView button = ( KeyButtonView ) mParent . findViewById ( id ) ; boolean isSmallButton = NavigationButtons . IS_SLOT_SMALL [ i ] ; button . setInfo ( info , mVertical , isSmallButton ) ; if ( ! info . equals ( NavigationButtons . EMPTY ) && ! isSmallButton ) { visibleCount ++ ; } button . setTranslationX ( 0 ) ; mButtonViews . set ( i , button ) ; } if ( isDevicePhone ( mContext ) ) { adjustPadding ( visibleCount ) ; } updateLowLights ( visibleCount ) ; }
updates the buttons according to the key arrangement stored in settings provider
