]> gitweb.stoutner.com Git - PrivacyCell.git/commitdiff
Remove unneeded `onBackPressed`. https://redmine.stoutner.com/issues/934
authorSoren Stoutner <soren@stoutner.com>
Wed, 30 Nov 2022 18:11:57 +0000 (11:11 -0700)
committerSoren Stoutner <soren@stoutner.com>
Wed, 30 Nov 2022 18:11:57 +0000 (11:11 -0700)
app/src/main/java/com/stoutner/privacycell/activities/SettingsActivity.kt

index f1923b3b4d1a10ae8f85bf7bf0415edfbda78a2b..c9fe9300f9cf50a89a7f8d69dce47b732a7f0502 100644 (file)
@@ -24,7 +24,6 @@ import android.content.Intent
 import android.content.pm.PackageManager
 import android.os.Build
 import android.os.Bundle
-import android.view.MenuItem
 
 import androidx.appcompat.app.AppCompatActivity
 import androidx.appcompat.widget.Toolbar
@@ -83,14 +82,6 @@ class SettingsActivity : AppCompatActivity(), NotificationPermissionDialogListen
         }
     }
 
-    override fun onOptionsItemSelected(item: MenuItem): Boolean {
-        // As there is only one option, go back.
-        onBackPressed()
-
-        // Consume the event.
-        return true
-    }
-
     override fun onRequestPermissionsResult(requestCode: Int, permissions: Array<out String>, grantResults: IntArray) {
         // Run the default commands.
         super.onRequestPermissionsResult(requestCode, permissions, grantResults)