diff --git a/app/src/main/java/io/legado/app/ui/config/ConfigActivity.kt b/app/src/main/java/io/legado/app/ui/config/ConfigActivity.kt index ad6c1bea2..0c2525d9c 100644 --- a/app/src/main/java/io/legado/app/ui/config/ConfigActivity.kt +++ b/app/src/main/java/io/legado/app/ui/config/ConfigActivity.kt @@ -3,7 +3,6 @@ package io.legado.app.ui.config import android.content.Intent import android.os.Bundle import android.os.Process -import android.util.Log import io.legado.app.App import io.legado.app.R import io.legado.app.base.VMBaseActivity @@ -60,7 +59,6 @@ class ConfigActivity : VMBaseActivity(R.layout.activity_config) recreate() } observeEvent(EventBus.REOPEN) { - Log.d("h11128", "reopen") val intent = Intent(App.INSTANCE, MainActivity::class.java) intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK) App.INSTANCE.startActivity(intent) diff --git a/app/src/main/java/io/legado/app/ui/config/OtherConfigFragment.kt b/app/src/main/java/io/legado/app/ui/config/OtherConfigFragment.kt index 177731855..36fe3dc92 100644 --- a/app/src/main/java/io/legado/app/ui/config/OtherConfigFragment.kt +++ b/app/src/main/java/io/legado/app/ui/config/OtherConfigFragment.kt @@ -126,7 +126,7 @@ class OtherConfigFragment : BasePreferenceFragment(), App.INSTANCE.getPrefBoolean(PreferKey.replaceEnableDefault, true) PreferKey.language -> { LanguageUtils.setConfiguration(App.INSTANCE) - postEvent(EventBus.RECREATE, "") + postEvent(EventBus.REOPEN, "") } } } diff --git a/app/src/main/java/io/legado/app/utils/LanguageUtils.kt b/app/src/main/java/io/legado/app/utils/LanguageUtils.kt index cf1e5a159..def23e1e8 100644 --- a/app/src/main/java/io/legado/app/utils/LanguageUtils.kt +++ b/app/src/main/java/io/legado/app/utils/LanguageUtils.kt @@ -5,7 +5,6 @@ import android.content.res.Configuration import android.content.res.Resources import android.os.Build import android.os.LocaleList -import android.util.Log import io.legado.app.constant.PreferKey import java.util.*