Skip to content

Commit

Permalink
Remove useless back button check
Browse files Browse the repository at this point in the history
  • Loading branch information
t895 authored and thestinger committed Jan 4, 2025
1 parent 638f98b commit 8d6da9e
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -509,12 +509,6 @@ open class MainActivity : AppCompatActivity(),
}

override fun onKeyUp(keyCode: Int, event: KeyEvent?): Boolean {

if (keyCode == KeyEvent.KEYCODE_BACK) {
finish()
return true
}

// there are no camera controls in qr mode
if (camConfig.isQRMode) {
return super.onKeyUp(keyCode, event)
Expand Down

0 comments on commit 8d6da9e

Please sign in to comment.