From 42ad5ddae5957ee4cf4bb3e56fab049fc1b6e9a4 Mon Sep 17 00:00:00 2001 From: linyuh Date: Tue, 24 Apr 2018 11:10:30 -0700 Subject: Don't allow reporting a inaccurate number for a voicemail call. Bug: 78291768 Test: ModulesTest PiperOrigin-RevId: 194114862 Change-Id: Iee367be53ffff5226a818ebb4af69ddd55054812 --- java/com/android/dialer/calllog/ui/menu/Modules.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'java') diff --git a/java/com/android/dialer/calllog/ui/menu/Modules.java b/java/com/android/dialer/calllog/ui/menu/Modules.java index 0b9b01d2a..94da6ec99 100644 --- a/java/com/android/dialer/calllog/ui/menu/Modules.java +++ b/java/com/android/dialer/calllog/ui/menu/Modules.java @@ -184,7 +184,8 @@ final class Modules { private static HistoryItemActionModule createModuleForAccessingCallDetails( Context context, CoalescedRow row) { - boolean canReportAsInvalidNumber = row.getNumberAttributes().getCanReportAsInvalidNumber(); + boolean canReportAsInvalidNumber = + !row.getIsVoicemailCall() && row.getNumberAttributes().getCanReportAsInvalidNumber(); return new IntentModule( context, -- cgit v1.2.3