diff options
author | Sarmad Hashmi <mhashmi@google.com> | 2016-04-04 10:53:15 -0700 |
---|---|---|
committer | Sarmad Hashmi <mhashmi@google.com> | 2016-04-04 10:53:15 -0700 |
commit | d780c458eb602c22ed5542966d05039c0cc7673c (patch) | |
tree | 3cb835c0574035f5ac37e25a9bddde090478d6d5 | |
parent | 4eea2a38be7230f11300d83aea01e6c886ed8986 (diff) |
Add callType to button renderer for spam reporting.
+Pass callType to ExtendedBlockingButtonRenderer so that when the user
reports a number as spam or not spam, the type of call (missed,
voicemail, etc.) is passed to the clearcut log
BUG=27323803
Change-Id: I5d3493d3d4212affc3e64e0f499143085baf0ec5
-rw-r--r-- | src/com/android/dialer/service/ExtendedBlockingButtonRenderer.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/com/android/dialer/service/ExtendedBlockingButtonRenderer.java b/src/com/android/dialer/service/ExtendedBlockingButtonRenderer.java index f8d5ea048..c605804fb 100644 --- a/src/com/android/dialer/service/ExtendedBlockingButtonRenderer.java +++ b/src/com/android/dialer/service/ExtendedBlockingButtonRenderer.java @@ -38,6 +38,11 @@ public interface ExtendedBlockingButtonRenderer { public final String countryIso; public final String nameOrNumber; public final String displayNumber; + /** + * Whether the type of call is missed, voicemail, etc. An example of this is + * {@link android.provider.CallLog.Calls#VOICEMAIL_TYPE}. + */ + public final int callType; public ViewHolderInfo( /* All existing views amongst the list item actions, even if invisible */ @@ -49,7 +54,8 @@ public interface ExtendedBlockingButtonRenderer { String phoneNumber, String countryIso, String nameOrNumber, - String displayNumber) { + String displayNumber, + int callType) { this.completeListItemViews = completeListItemViews; this.extendedBlockedViews = extendedBlockedViews; @@ -58,6 +64,7 @@ public interface ExtendedBlockingButtonRenderer { this.countryIso = countryIso; this.nameOrNumber = nameOrNumber; this.displayNumber = displayNumber; + this.callType = callType; } } |