From 8d6da9e921d54813d9473d446fd9843690de109b Mon Sep 17 00:00:00 2001 From: Charles Lombardo Date: Fri, 3 Jan 2025 22:30:57 -0500 Subject: [PATCH] Remove useless back button check --- .../app/grapheneos/camera/ui/activities/MainActivity.kt | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app/src/main/java/app/grapheneos/camera/ui/activities/MainActivity.kt b/app/src/main/java/app/grapheneos/camera/ui/activities/MainActivity.kt index 410853eb..0d93b3ba 100644 --- a/app/src/main/java/app/grapheneos/camera/ui/activities/MainActivity.kt +++ b/app/src/main/java/app/grapheneos/camera/ui/activities/MainActivity.kt @@ -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)