aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2024-01-21 23:48:44 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2024-01-21 23:48:44 +0530
commit964059e0daee3afcb84f43fe369a97c8c546c959 (patch)
tree573b3b673fa82c6abe3f9f0f5c768da976a107cb /app/src/main/java
parent24ec29e9e28d485387bdd046935cef9235dd5c6d (diff)
fix: route navigation events correctly
Fixes #2865
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/app/passwordstore/ui/passwords/PasswordStore.kt4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/src/main/java/app/passwordstore/ui/passwords/PasswordStore.kt b/app/src/main/java/app/passwordstore/ui/passwords/PasswordStore.kt
index 861250c8..24cd8bbd 100644
--- a/app/src/main/java/app/passwordstore/ui/passwords/PasswordStore.kt
+++ b/app/src/main/java/app/passwordstore/ui/passwords/PasswordStore.kt
@@ -315,7 +315,9 @@ class PasswordStore : BaseGitActivity() {
}
}
R.id.refresh -> refreshPasswordList()
- android.R.id.home -> onBackPressedDispatcher.onBackPressed()
+ android.R.id.home -> {
+ @Suppress("DEPRECATION") onBackPressed()
+ }
else -> return super.onOptionsItemSelected(item)
}
return true