allow closing View screen quicker with double back button

This commit is contained in:
tibbi
2020-04-29 18:31:19 +02:00
parent b8e633aea8
commit fa05c304e9

View File

@ -74,7 +74,7 @@ class ViewContactActivity : ContactActivity() {
} }
override fun onBackPressed() { override fun onBackPressed() {
if (contact_photo_big.isVisible()) { if (contact_photo_big.alpha == 1f) {
hideBigContactPhoto() hideBigContactPhoto()
} else { } else {
super.onBackPressed() super.onBackPressed()