Finish incoming call activity when clicking on decline button
This commit is contained in:
parent
83c7a69d51
commit
1b344c3013
3 changed files with 4 additions and 3 deletions
|
@ -122,7 +122,7 @@ public class CallIncomingActivity extends LinphoneGenericActivity {
|
||||||
Core core, Call call, State state, String message) {
|
Core core, Call call, State state, String message) {
|
||||||
if (call == mCall) {
|
if (call == mCall) {
|
||||||
if (state == State.Connected) {
|
if (state == State.Connected) {
|
||||||
// This is done by the Service listener now
|
// This is done by the LinphoneContext listener now
|
||||||
// startActivity(new Intent(CallOutgoingActivity.this,
|
// startActivity(new Intent(CallOutgoingActivity.this,
|
||||||
// CallActivity.class));
|
// CallActivity.class));
|
||||||
}
|
}
|
||||||
|
@ -230,6 +230,7 @@ public class CallIncomingActivity extends LinphoneGenericActivity {
|
||||||
mAlreadyAcceptedOrDeniedCall = true;
|
mAlreadyAcceptedOrDeniedCall = true;
|
||||||
|
|
||||||
mCall.terminate();
|
mCall.terminate();
|
||||||
|
finish();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void answer() {
|
private void answer() {
|
||||||
|
|
|
@ -125,7 +125,7 @@ public class CallOutgoingActivity extends LinphoneGenericActivity implements OnC
|
||||||
.show();
|
.show();
|
||||||
}
|
}
|
||||||
} else if (state == State.Connected) {
|
} else if (state == State.Connected) {
|
||||||
// This is done by the Service listener now
|
// This is done by the LinphoneContext listener now
|
||||||
// startActivity(new Intent(CallOutgoingActivity.this,
|
// startActivity(new Intent(CallOutgoingActivity.this,
|
||||||
// CallActivity.class));
|
// CallActivity.class));
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@ buildscript {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:3.5.1'
|
classpath 'com.android.tools.build:gradle:3.5.2'
|
||||||
classpath 'com.google.gms:google-services:4.3.2'
|
classpath 'com.google.gms:google-services:4.3.2'
|
||||||
classpath "com.diffplug.spotless:spotless-plugin-gradle:3.24.2"
|
classpath "com.diffplug.spotless:spotless-plugin-gradle:3.24.2"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue