Searched refs:numCards (Results 1 – 2 of 2) sorted by relevance
119 int numCards = 0; in setCardAndHeaderPositions() local122 numCards++; in setCardAndHeaderPositions()164 todayHeaderPosition = numItemsInToday > 0 ? numCards : null; in setCardAndHeaderPositions()165 yesterdayHeaderPosition = numItemsInYesterday > 0 ? numItemsInToday + numCards : null; in setCardAndHeaderPositions()167 numItemsInOlder > 0 ? numItemsInToday + numItemsInYesterday + numCards : null; in setCardAndHeaderPositions()
217 private static int numCardsOnScreen(int numCards, int selectedIndex) { in numCardsOnScreen() argument218 if (numCards <= 2) { in numCardsOnScreen()219 return numCards; in numCardsOnScreen()223 return selectedIndex > 0 && selectedIndex < (numCards - 1) ? 3 : 2; in numCardsOnScreen()