mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2026-11-25 19:41:34 -08:00
Keep current screen after theme change
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user