summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/shortcuts/CallContactActivity.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/com/android/dialer/shortcuts/CallContactActivity.java')
-rw-r--r--java/com/android/dialer/shortcuts/CallContactActivity.java14
1 files changed, 8 insertions, 6 deletions
diff --git a/java/com/android/dialer/shortcuts/CallContactActivity.java b/java/com/android/dialer/shortcuts/CallContactActivity.java
index 40bf97b87..d2c9a760d 100644
--- a/java/com/android/dialer/shortcuts/CallContactActivity.java
+++ b/java/com/android/dialer/shortcuts/CallContactActivity.java
@@ -56,6 +56,12 @@ public class CallContactActivity extends TransactionSafeActivity
}
}
+ @Override
+ protected void onDestroy() {
+ super.onDestroy();
+ LogUtil.enterBlock("CallContactActivity.onDestroy");
+ }
+
/**
* Attempt to make a call, finishing the activity if the required permissions are already granted.
* If the required permissions are not already granted, the activity is not finished so that the
@@ -64,12 +70,8 @@ public class CallContactActivity extends TransactionSafeActivity
private void makeCall() {
CallSpecificAppData callSpecificAppData = new CallSpecificAppData();
callSpecificAppData.callInitiationType = CallInitiationType.Type.LAUNCHER_SHORTCUT;
- boolean interactionStarted =
- PhoneNumberInteraction.startInteractionForPhoneCall(
- this, contactUri, false /* isVideoCall */, callSpecificAppData);
- if (interactionStarted) {
- finish();
- }
+ PhoneNumberInteraction.startInteractionForPhoneCall(
+ this, contactUri, false /* isVideoCall */, callSpecificAppData);
}
@Override