From 350f7cc579aac04c80e181977a82870c98d91389 Mon Sep 17 00:00:00 2001 From: Mario Danic Date: Thu, 11 Jan 2018 23:09:40 +0100 Subject: [PATCH] Safety net for onDestroy Signed-off-by: Mario Danic --- .../main/java/com/nextcloud/talk/activities/CallActivity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 2b1111883..509fc4453 100644 --- a/app/src/main/java/com/nextcloud/talk/activities/CallActivity.java +++ b/app/src/main/java/com/nextcloud/talk/activities/CallActivity.java @@ -1124,7 +1124,9 @@ public class CallActivity extends AppCompatActivity { @Override public void onDestroy() { - hangup(false); + if (inCall) { + hangup(false); + } //this.unregisterReceiver(networkBroadcastReceier); super.onDestroy(); }