Fixed incorrect int value passed as group.

This commit is contained in:
Dmitry Yunitsky 2015-02-11 14:12:33 +03:00 committed by Alex Zolotarev
parent a25751a1c2
commit fb3330ce9d

View file

@ -1,6 +1,5 @@
package com.mapswithme.country;
import com.mapswithme.maps.MapStorage;
import com.mapswithme.maps.MapStorage.Index;
public class ActiveCountryTree
@ -29,7 +28,7 @@ public class ActiveCountryTree
public static int getTotalCount()
{
return getCountInGroup(MapStorage.ON_DISK) + getCountInGroup(MapStorage.ON_DISK_OUT_OF_DATE);
return getCountInGroup(GROUP_OUT_OF_DATE) + getCountInGroup(GROUP_UP_TO_DATE);
}
public static native CountryItem getCountryItem(int group, int position);