|
|
|
@ -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<ConfigViewModel>(R.layout.activity_config) |
|
|
|
|
recreate() |
|
|
|
|
} |
|
|
|
|
observeEvent<String>(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) |
|
|
|
|