Prevent also back key from dismissing password dialog

This commit is contained in:
Juha Heinanen
2023-03-14 13:49:14 +02:00
parent e1fdb8ecbd
commit 4479aaa7ef

View File

@ -1617,6 +1617,7 @@ class MainActivity : AppCompatActivity() {
dialog.cancel()
}
val dialog = this.create()
dialog.setCancelable(false)
dialog.setCanceledOnTouchOutside(false)
dialog.window!!.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE)
dialog.show()
@ -1667,6 +1668,7 @@ class MainActivity : AppCompatActivity() {
askPasswords(accounts)
}
val dialog = this.create()
dialog.setCancelable(false)
dialog.setCanceledOnTouchOutside(false)
dialog.window!!.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE)
dialog.show()