fix(mobile): Fixed issue where pressing the back button on editor screen wouldn't switch back to the items list on Android

This commit is contained in:
Aman Harwara
2022-12-04 16:49:46 +05:30
parent 90e10c76f7
commit 07cb00a815
7 changed files with 32 additions and 17 deletions

View File

@@ -369,6 +369,12 @@ export class WebApplication extends SNApplication implements WebApplicationInter
return
}
setAndroidBackHandlerFallbackListener(listener: () => boolean) {
if (typeof this.androidBackHandler !== 'undefined') {
this.androidBackHandler.setFallbackListener(listener)
}
}
isAuthorizedToRenderItem(item: DecryptedItem): boolean {
if (item.protected && this.hasProtectionSources()) {
return this.hasUnprotectedAccessSession()