homeTabId2Index function

int homeTabId2Index (
  1. HomeTabId id
)

Implementation

int homeTabId2Index(HomeTabId id) {
  int index = 0;
  switch (id) {
    case HomeTabId.SHOPPING:
      index = 0;
      break;
    case HomeTabId.CARD_MANAGEMENT:
      index = 1;
      break;
    case HomeTabId.USER_SETTINGS:
      index = 2;
      break;
    case HomeTabId.CONTRIB:
      index = 3;
      break;
    default:
      index = 0;
  }
  return index;
}