mirror of
https://github.com/bitfireAT/davx5-ose
synced 2024-10-01 17:00:45 +00:00
Do not create new task
Signed-off-by: Arnau Mora Gras <arnyminerz@proton.me>
This commit is contained in:
parent
c2cca01b3b
commit
c7b18b1f41
|
@ -64,9 +64,7 @@ class IntroActivity : AppCompatActivity() {
|
|||
*/
|
||||
object Contract: ActivityResultContract<Unit?, Boolean>() {
|
||||
override fun createIntent(context: Context, input: Unit?): Intent =
|
||||
Intent(context, IntroActivity::class.java).apply {
|
||||
flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK
|
||||
}
|
||||
Intent(context, IntroActivity::class.java)
|
||||
|
||||
override fun parseResult(resultCode: Int, intent: Intent?): Boolean {
|
||||
return resultCode == Activity.RESULT_CANCELED
|
||||
|
|
Loading…
Reference in a new issue