From a6e854bc9f5412504338ab017d4ac5406a09f421 Mon Sep 17 00:00:00 2001 From: Mario Danic Date: Thu, 11 Jan 2018 23:08:04 +0100 Subject: [PATCH] Override back press to properly clean up Signed-off-by: Mario Danic --- app/build.gradle | 4 ++-- .../main/java/com/nextcloud/talk/activities/CallActivity.java | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 82e89dbaf..bc4baeb13 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -12,8 +12,8 @@ android { targetSdkVersion 27 testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" - versionCode 8 - versionName "1.0.0" + versionCode 9 + versionName "1.0.1" // Enabling multidex support. multiDexEnabled true diff --git a/app/src/main/java/com/nextcloud/talk/activities/CallActivity.java b/app/src/main/java/com/nextcloud/talk/activities/CallActivity.java index 469bb6c5d..2b1111883 100644 --- a/app/src/main/java/com/nextcloud/talk/activities/CallActivity.java +++ b/app/src/main/java/com/nextcloud/talk/activities/CallActivity.java @@ -1362,6 +1362,10 @@ public class CallActivity extends AppCompatActivity { } } }); + } + @Override + public void onBackPressed() { + onHangupClick(); } }