Keep current screen after theme change

This commit is contained in:
J-Jamet committed 2021-01-23 13:13:01 +01:00
1 parent 432b385f60
commit 6ca8501e28
1 file changed
+2 -1
@@ -387,7 +387,8 @@ class NestedAppSettingsFragment : NestedSettingsFragment() {
if (styleEnabled) {
Stylish.assignStyle(styleIdString)
// Relaunch the current activity to redraw theme
activity.apply {
(activity as? SettingsActivity?)?.apply {
keepCurrentScreen()
startActivity(intent)
finish()
activity.overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out)