summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorlinyuh <linyuh@google.com>2018-01-02 12:23:10 -0800
committerCopybara-Service <copybara-piper@google.com>2018-01-02 12:25:20 -0800
commit79acc546f80e6f729cae45158cc12188af6cebb3 (patch)
tree0d0c541ec2274767b0b9b510f51c81364ff0dc68 /java
parent15b1de56be230e3b2e9e2dbbf4fe03e4f2a8c26e (diff)
Support assisted dialing in CallDetailsActivity when launched from the new call log UI.
Bug: 70218437 Test: ModulesTest PiperOrigin-RevId: 180577770 Change-Id: Idbfe48ea22d422c90d970d633a952a7200f49f82
Diffstat (limited to 'java')
-rw-r--r--java/com/android/dialer/calldetails/CallDetailsActivity.java2
-rw-r--r--java/com/android/dialer/calllog/ui/menu/Modules.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/java/com/android/dialer/calldetails/CallDetailsActivity.java b/java/com/android/dialer/calldetails/CallDetailsActivity.java
index b314e26bf..b15dc456d 100644
--- a/java/com/android/dialer/calldetails/CallDetailsActivity.java
+++ b/java/com/android/dialer/calldetails/CallDetailsActivity.java
@@ -85,7 +85,7 @@ public class CallDetailsActivity extends AppCompatActivity {
public static final String EXTRA_COALESCED_CALL_LOG_IDS = "coalesced_call_log_ids";
public static final String EXTRA_CONTACT = "contact";
public static final String EXTRA_CAN_REPORT_CALLER_ID = "can_report_caller_id";
- private static final String EXTRA_CAN_SUPPORT_ASSISTED_DIALING = "can_support_assisted_dialing";
+ public static final String EXTRA_CAN_SUPPORT_ASSISTED_DIALING = "can_support_assisted_dialing";
private final CallDetailsHeaderViewHolder.CallDetailsHeaderListener callDetailsHeaderListener =
new CallDetailsHeaderListener(this);
diff --git a/java/com/android/dialer/calllog/ui/menu/Modules.java b/java/com/android/dialer/calllog/ui/menu/Modules.java
index d50d8d319..50da2fcaf 100644
--- a/java/com/android/dialer/calllog/ui/menu/Modules.java
+++ b/java/com/android/dialer/calllog/ui/menu/Modules.java
@@ -99,7 +99,7 @@ final class Modules {
// TODO(zachh): Load canReportInaccurateNumber in CallDetailsActivity
// (see also isPeopleApiSource(sourceType)).
boolean canReportInaccurateNumber = false;
- boolean canSupportAssistedDialing = false; // TODO(zachh): Properly set value.
+ boolean canSupportAssistedDialing = !TextUtils.isEmpty(row.lookupUri());
modules.add(
new IntentModule(