Feature: Add content reload to language switcher setting's calls

This commit adds a content API reload call to the list of calls that
happen when the language is changed. This call is necessary so certain
parts of the app, like the stable, have the correct language when
the language is switched.
This commit is contained in:
Daniel Kaparunakis 2016-09-16 12:45:08 -05:00
parent 4b63b63b0d
commit 2efb6ee0bb

View file

@ -224,6 +224,11 @@ public class PreferencesFragment extends BasePreferencesFragment implements
.compose(apiHelper.configureApiCallObserver())
.subscribe(new MergeUserCallback(activity, user), throwable -> {
});
apiHelper.apiService.getContent(languageHelper.getLanguageCode())
.compose(apiHelper.configureApiCallObserver())
.subscribe(contentResult -> {
}, throwable -> {
});
if (android.os.Build.VERSION.SDK_INT <= Build.VERSION_CODES.ICE_CREAM_SANDWICH_MR1){
Intent intent = new Intent(getActivity(), MainActivity.class);