mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-22 13:48:55 +00:00
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:
parent
4b63b63b0d
commit
2efb6ee0bb
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue