homeTabIndex2Id function

HomeTabId homeTabIndex2Id (
  1. int index
)

Implementation

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