fix: 更改字体大小返回后闪退
This commit is contained in:
parent
18ec754df5
commit
878e8ba8f1
|
|
@ -86,8 +86,12 @@ class AppFontSizeActivity : BaseActivity() {
|
||||||
finished = true
|
finished = true
|
||||||
toastShort(R.string.toast_after_change_will_restart)
|
toastShort(R.string.toast_after_change_will_restart)
|
||||||
App.INSTANCE.removeAllActivity()
|
App.INSTANCE.removeAllActivity()
|
||||||
|
if (appPreferences.enableNewUi) {
|
||||||
|
goToActivity<MainActivityV2>()
|
||||||
|
} else {
|
||||||
goToActivity<MainActivity>()
|
goToActivity<MainActivity>()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
super.finish()
|
super.finish()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue