Add password protection feature to the app

This closes #446
This commit is contained in:
Ensar Sarajčić 2023-06-30 09:29:36 +02:00
parent af9143f46e
commit 143aaece4b
4 changed files with 62 additions and 6 deletions

View file

@ -62,6 +62,14 @@ class MainActivity : SimpleActivity() {
updateMaterialActivityViews(main_coordinator, conversations_list, useTransparentNavigation = true, useTopSearchMenu = true)
if (savedInstanceState == null) {
handleAppPasswordProtection {
if (!it) {
finish()
}
}
}
if (checkAppSideloading()) {
return
}
@ -636,6 +644,7 @@ class MainActivity : SimpleActivity() {
showErrorToast(e)
}
}
else -> toast(R.string.invalid_file_format)
}
}