Fix build without java 1.7 compatibility
This commit is contained in:
parent
fe1806b016
commit
f04ac83ec9
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user