| | |
| | | public class DateSortedExpandableListAdapter implements ExpandableListAdapter { |
| | | // Array for each of our bins. Each entry represents how many items are |
| | | // in that bin. |
| | | private int mItemMap[]; |
| | | private int[] mItemMap; |
| | | // This is our GroupCount. We will have at most DateSorter.DAY_COUNT |
| | | // bins, less if the user has no items in one or more bins. |
| | | private int mNumberOfBins; |
| | |
| | | private void buildMap() { |
| | | // The cursor is sorted by date |
| | | // The ItemMap will store the number of items in each bin. |
| | | int array[] = new int[DateSorter.DAY_COUNT]; |
| | | int[] array = new int[DateSorter.DAY_COUNT]; |
| | | // Zero out the array. |
| | | for (int j = 0; j < DateSorter.DAY_COUNT; j++) { |
| | | array[j] = 0; |