Override back press to properly clean up

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2018-01-11 23:08:04 +01:00
parent 0e78d0f64d
commit a6e854bc9f
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -1362,6 +1362,10 @@ public class CallActivity extends AppCompatActivity {
}
}
});
}
@Override
public void onBackPressed() {
onHangupClick();
}
}