mirror of
https://github.com/bitfireAT/davx5-ose
synced 2024-10-03 01:44:16 +00:00
When launching intro, going back closes the app
Signed-off-by: Arnau Mora <arnyminerz@proton.me>
This commit is contained in:
parent
1550c41a18
commit
3aa205c3c3
|
@ -68,7 +68,9 @@ 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)
|
Intent(context, IntroActivity::class.java).apply {
|
||||||
|
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 a new issue