Fix build without java 1.7 compatibility

This commit is contained in:
Daniel Martí 2014-04-10 15:08:29 +02:00
parent fe1806b016
commit f04ac83ec9

View File

@ -89,9 +89,9 @@ public class AvailableAppsFragment extends AppListFragment implements
final List<String> categories = AppProvider.Helper.categories(getActivity());
// attempt to translate category names with fallback to default name
List<String> translatedCategories = new ArrayList<>(categories.size());
List<String> translatedCategories = new ArrayList<String>(categories.size());
Resources res = getResources();
for (String category:categories)
for (String category : categories)
{
int id = res.getIdentifier(category.replace(" & ", "_"), "string", getActivity().getPackageName());
translatedCategories.add(id == 0 ? category : getString(id));