From 9318f456fdde244fd2c1896b0e8312a61aae3cc1 Mon Sep 17 00:00:00 2001 From: Andrey Stoyan Date: Mon, 28 Sep 2020 13:08:09 +0300 Subject: [PATCH] Do not remove the app from the system tray --- .../learnbraille/ui/screens/exit/ExitFragment.kt | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/com/github/braillesystems/learnbraille/ui/screens/exit/ExitFragment.kt b/app/src/main/java/com/github/braillesystems/learnbraille/ui/screens/exit/ExitFragment.kt index 1b889c9d..9506a7df 100644 --- a/app/src/main/java/com/github/braillesystems/learnbraille/ui/screens/exit/ExitFragment.kt +++ b/app/src/main/java/com/github/braillesystems/learnbraille/ui/screens/exit/ExitFragment.kt @@ -1,6 +1,5 @@ package com.github.braillesystems.learnbraille.ui.screens.exit -import android.os.Build import android.os.Bundle import android.view.LayoutInflater import android.view.ViewGroup @@ -30,11 +29,8 @@ class ExitFragment : AbstractFragment() { checkedAnnounce(title) exitButton.setOnClickListener { - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { - activity?.finishAndRemoveTask() - } else { - navigateToLauncher() - } + navigate(R.id.action_global_menuFragment) + navigateToLauncher() } continueButton.setOnClickListener {