diff options
Diffstat (limited to 'java/com/android/dialer/calllog')
-rw-r--r-- | java/com/android/dialer/calllog/ui/menu/Modules.java | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/java/com/android/dialer/calllog/ui/menu/Modules.java b/java/com/android/dialer/calllog/ui/menu/Modules.java index 147972710..9df122331 100644 --- a/java/com/android/dialer/calllog/ui/menu/Modules.java +++ b/java/com/android/dialer/calllog/ui/menu/Modules.java @@ -20,6 +20,7 @@ import android.content.Context; import android.provider.CallLog.Calls; import android.telecom.PhoneAccountHandle; import android.text.TextUtils; +import com.android.dialer.blockreportspam.BlockReportSpamDialogInfo; import com.android.dialer.calldetails.CallDetailsActivity; import com.android.dialer.callintent.CallInitiationType; import com.android.dialer.calllog.model.CoalescedRow; @@ -83,15 +84,19 @@ final class Modules { modules.add(moduleForAddingToContacts.get()); } + BlockReportSpamDialogInfo blockReportSpamDialogInfo = + BlockReportSpamDialogInfo.newBuilder() + .setNormalizedNumber(row.number().getNormalizedNumber()) + .setCountryIso(row.number().getCountryIso()) + .setCallType(row.callType()) + .setReportingLocation(ReportingLocation.Type.CALL_LOG_HISTORY) + .build(); modules.addAll( SharedModules.createModulesHandlingBlockedOrSpamNumber( context, - row.number().getNormalizedNumber(), - row.number().getCountryIso(), - row.callType(), + blockReportSpamDialogInfo, row.numberAttributes().getIsBlocked(), - row.numberAttributes().getIsSpam(), - ReportingLocation.Type.CALL_LOG_HISTORY)); + row.numberAttributes().getIsSpam())); Optional<HistoryItemActionModule> moduleForCopyingNumber = SharedModules.createModuleForCopyingNumber(context, normalizedNumber); |