Restart activity with fresh intent

Fix #2706
This commit is contained in:
topjohnwu 2020-06-29 03:29:57 -07:00
parent b1e0c5ff38
commit 867bab8513

View File

@ -85,7 +85,7 @@ abstract class BaseActivity : AppCompatActivity() {
}
override fun recreate() {
startActivity(intent)
startActivity(Intent().setComponent(intent.component))
finish()
}