diff options
author | Sarmad Hashmi <mhashmi@google.com> | 2016-04-14 20:38:08 -0700 |
---|---|---|
committer | Sarmad Hashmi <mhashmi@google.com> | 2016-04-15 17:18:24 -0700 |
commit | f05c8f7c3f7e8d3a91f4c092b73dc5edb67d664b (patch) | |
tree | e5edc5aabf2ef0764b59e82b5e5cd90a1d354bd8 /src/com/android/dialer/calllog | |
parent | f40b8dbaddde6136d49b3115584e47a8207c6220 (diff) |
Update ExtendedCallInfoService reporting methods to accept location.
+Add IntDef which contains all the possible locations numbers can be
reported as spam or not spam from.
+Updated method calls to include location
BUG=27323295
Change-Id: I549e439af328447fbbf0c61116cdff9b1b877334
Diffstat (limited to 'src/com/android/dialer/calllog')
-rw-r--r-- | src/com/android/dialer/calllog/BlockReportSpamListener.java | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/com/android/dialer/calllog/BlockReportSpamListener.java b/src/com/android/dialer/calllog/BlockReportSpamListener.java index 62b9b9311..92cbc804b 100644 --- a/src/com/android/dialer/calllog/BlockReportSpamListener.java +++ b/src/com/android/dialer/calllog/BlockReportSpamListener.java @@ -41,7 +41,8 @@ public class BlockReportSpamListener implements CallLogListItemViewHolder.OnClic public void onClick(boolean isSpamChecked) { if (isSpamChecked) { mExtendedCallInfoService.reportSpam( - number, countryIso, callType); + number, countryIso, callType, + ExtendedCallInfoService.REPORTING_LOCATION_CALL_LOG_HISTORY); } mFilteredNumberAsyncQueryHandler.blockNumber( new FilteredNumberAsyncQueryHandler.OnBlockNumberListener() { @@ -64,7 +65,8 @@ public class BlockReportSpamListener implements CallLogListItemViewHolder.OnClic new BlockReportSpamDialogs.OnConfirmListener() { @Override public void onClick() { - mExtendedCallInfoService.reportSpam(number, countryIso, callType); + mExtendedCallInfoService.reportSpam(number, countryIso, callType, + ExtendedCallInfoService.REPORTING_LOCATION_CALL_LOG_HISTORY); mFilteredNumberAsyncQueryHandler.blockNumber( new FilteredNumberAsyncQueryHandler.OnBlockNumberListener() { @Override @@ -88,7 +90,8 @@ public class BlockReportSpamListener implements CallLogListItemViewHolder.OnClic public void onClick() { if (isSpam) { mExtendedCallInfoService.reportNotSpam( - number, countryIso, callType); + number, countryIso, callType, + ExtendedCallInfoService.REPORTING_LOCATION_CALL_LOG_HISTORY); } mFilteredNumberAsyncQueryHandler.unblock( new FilteredNumberAsyncQueryHandler.OnUnblockNumberListener() { @@ -111,7 +114,8 @@ public class BlockReportSpamListener implements CallLogListItemViewHolder.OnClic @Override public void onClick() { mExtendedCallInfoService.reportNotSpam( - number, countryIso, callType); + number, countryIso, callType, + ExtendedCallInfoService.REPORTING_LOCATION_CALL_LOG_HISTORY); mAdapter.notifyDataSetChanged(); } }, null) |