reroute all deep links through DeepLinkActivity to provide more control (#2546)
over launch behavior/intent flagspull/2549/head
parent
1b5554eeda
commit
6d9bec3e0b
@ -0,0 +1,19 @@
|
||||
package eu.kanade.tachiyomi.ui.main
|
||||
|
||||
import android.app.Activity
|
||||
import android.content.Intent
|
||||
import android.os.Bundle
|
||||
|
||||
class DeepLinkActivity: Activity() {
|
||||
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
|
||||
intent.apply {
|
||||
flags = flags or Intent.FLAG_ACTIVITY_CLEAR_TASK or Intent.FLAG_ACTIVITY_NEW_TASK
|
||||
setClass(applicationContext, MainActivity::class.java)
|
||||
}
|
||||
startActivity(intent)
|
||||
finish()
|
||||
}
|
||||
}
|
Loading…
Reference in new issue