Fixes #231 - category translations were reverting to english.

There are two places where translations get populated. One of them (when
the fragment is initialized) translates the categories. The other place
(when the "installed app cache" background process completes) did not
translate the category names. They are now both translated.
This commit is contained in:
Peter Serwylo 2015-04-20 13:19:21 +10:00
parent 928d3e8c9a
commit cdb8100819

View File

@ -92,8 +92,8 @@ public class AvailableAppsFragment extends AppListFragment implements
return; return;
} }
adapter.clear(); adapter.clear();
List<String> catList = AppProvider.Helper.categories(getActivity()); categories = AppProvider.Helper.categories(getActivity());
ArrayAdapterCompat.addAll(adapter, catList); ArrayAdapterCompat.addAll(adapter, translateCategories(categories));
} }
}); });
} }