From 640e4181a6efb0f659853db45eac55dd44be2bc5 Mon Sep 17 00:00:00 2001 From: linyuh Date: Thu, 4 Jan 2018 13:58:38 -0800 Subject: Set flag 'canReportAsInvalidNumber' in CallDetailsActivity's intent when it's launched from the new call log. Bug: 70218437 Test: ModulesTest PiperOrigin-RevId: 180841866 Change-Id: Iba25ce6a8716d85f86a6cea32386b949973ee59f --- java/com/android/dialer/calllog/ui/menu/Modules.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'java/com/android') diff --git a/java/com/android/dialer/calllog/ui/menu/Modules.java b/java/com/android/dialer/calllog/ui/menu/Modules.java index 50da2fcaf..d62cc2082 100644 --- a/java/com/android/dialer/calllog/ui/menu/Modules.java +++ b/java/com/android/dialer/calllog/ui/menu/Modules.java @@ -96,9 +96,7 @@ final class Modules { private static void addModuleForAccessingCallDetails( Context context, List modules, CoalescedRow row) { - // TODO(zachh): Load canReportInaccurateNumber in CallDetailsActivity - // (see also isPeopleApiSource(sourceType)). - boolean canReportInaccurateNumber = false; + boolean canReportAsInvalidNumber = row.canReportAsInvalidNumber(); boolean canSupportAssistedDialing = !TextUtils.isEmpty(row.lookupUri()); modules.add( @@ -108,7 +106,7 @@ final class Modules { context, row.coalescedIds(), createDialerContactFromRow(row), - canReportInaccurateNumber, + canReportAsInvalidNumber, canSupportAssistedDialing), R.string.call_details_menu_label, R.drawable.quantum_ic_info_outline_vd_theme_24)); -- cgit v1.2.3