From cdb81008197259f09ee3079410447c6e6091482c Mon Sep 17 00:00:00 2001 From: Peter Serwylo Date: Mon, 20 Apr 2015 13:19:21 +1000 Subject: [PATCH] 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. --- .../fdroid/fdroid/views/fragments/AvailableAppsFragment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/F-Droid/src/org/fdroid/fdroid/views/fragments/AvailableAppsFragment.java b/F-Droid/src/org/fdroid/fdroid/views/fragments/AvailableAppsFragment.java index 351406e15..e71988ae4 100644 --- a/F-Droid/src/org/fdroid/fdroid/views/fragments/AvailableAppsFragment.java +++ b/F-Droid/src/org/fdroid/fdroid/views/fragments/AvailableAppsFragment.java @@ -92,8 +92,8 @@ public class AvailableAppsFragment extends AppListFragment implements return; } adapter.clear(); - List catList = AppProvider.Helper.categories(getActivity()); - ArrayAdapterCompat.addAll(adapter, catList); + categories = AppProvider.Helper.categories(getActivity()); + ArrayAdapterCompat.addAll(adapter, translateCategories(categories)); } }); }