Safety net for onDestroy

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2018-01-11 23:09:40 +01:00
parent a6e854bc9f
commit 350f7cc579

View File

@ -1124,7 +1124,9 @@ public class CallActivity extends AppCompatActivity {
@Override @Override
public void onDestroy() { public void onDestroy() {
hangup(false); if (inCall) {
hangup(false);
}
//this.unregisterReceiver(networkBroadcastReceier); //this.unregisterReceiver(networkBroadcastReceier);
super.onDestroy(); super.onDestroy();
} }