Prevent also back key from dismissing password dialog
This commit is contained in:
@@ -1617,6 +1617,7 @@ class MainActivity : AppCompatActivity() {
|
|||||||
dialog.cancel()
|
dialog.cancel()
|
||||||
}
|
}
|
||||||
val dialog = this.create()
|
val dialog = this.create()
|
||||||
|
dialog.setCancelable(false)
|
||||||
dialog.setCanceledOnTouchOutside(false)
|
dialog.setCanceledOnTouchOutside(false)
|
||||||
dialog.window!!.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE)
|
dialog.window!!.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE)
|
||||||
dialog.show()
|
dialog.show()
|
||||||
@@ -1667,6 +1668,7 @@ class MainActivity : AppCompatActivity() {
|
|||||||
askPasswords(accounts)
|
askPasswords(accounts)
|
||||||
}
|
}
|
||||||
val dialog = this.create()
|
val dialog = this.create()
|
||||||
|
dialog.setCancelable(false)
|
||||||
dialog.setCanceledOnTouchOutside(false)
|
dialog.setCanceledOnTouchOutside(false)
|
||||||
dialog.window!!.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE)
|
dialog.window!!.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE)
|
||||||
dialog.show()
|
dialog.show()
|
||||||
|
|||||||
Reference in New Issue
Block a user