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