@Kroll.method
 @Kroll.getProperty
 public int getNavigationMode() {
   if (actionBar == null) {
     return 0;
   }
   return (int) actionBar.getNavigationMode();
 }
 public void saveNavigationPositionToDB() {
   int navPosition = getMenuFragment().getCurrentIndex() * 10;
   ActionBar actionBar = getActionBar();
   int second = 0;
   if (actionBar.getNavigationMode() != ActionBar.NAVIGATION_MODE_STANDARD) {
     second = actionBar.getSelectedNavigationIndex();
   }
   int result = navPosition + second;
   GlobalContext.getInstance().getAccountBean().setNavigationPosition(result);
   AccountDBTask.updateNavigationPosition(GlobalContext.getInstance().getAccountBean(), result);
 }
  public void onToggleTabs(View v) {
    final ActionBar bar = getActionBar();

    if (bar.getNavigationMode() == ActionBar.NAVIGATION_MODE_TABS) {
      bar.setNavigationMode(ActionBar.NAVIGATION_MODE_STANDARD);
      bar.setDisplayOptions(ActionBar.DISPLAY_SHOW_TITLE, ActionBar.DISPLAY_SHOW_TITLE);
    } else {
      bar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
      bar.setDisplayOptions(0, ActionBar.DISPLAY_SHOW_TITLE);
    }
  }
 @Override
 public int getNavigationMode() {
   return mActionBar.getNavigationMode();
 }