From 964059e0daee3afcb84f43fe369a97c8c546c959 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sun, 21 Jan 2024 23:48:44 +0530 Subject: [PATCH] fix: route navigation events correctly Fixes #2865 --- .../main/java/app/passwordstore/ui/passwords/PasswordStore.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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