Skip to content

Commit

Permalink
Attempt to fix wrongly recreated activity on theme change
Browse files Browse the repository at this point in the history
  • Loading branch information
Faltenreich committed Feb 24, 2019
1 parent 3fedb28 commit 85f8459
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ private void applyTheme() {
PreferenceHelper.getInstance().setTheme(temporaryTheme);
ThemeUtils.setDefaultNightMode(temporaryTheme);
ThemeUtils.setUiMode(getContext(), temporaryTheme);
if (getActivity() != null) {
getActivity().recreate();
}
}
}
}

0 comments on commit 85f8459

Please sign in to comment.