Skip to content

Commit

Permalink
Merge branch 'dev' into release/1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
zuevval committed Sep 28, 2020
2 parents 8e0efe6 + e2d5ca9 commit 6b403cd
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 6b403cd

Please sign in to comment.