diff options
author | Brandon Maxwell <maxwelb@google.com> | 2015-11-05 16:27:40 -0800 |
---|---|---|
committer | Brandon Maxwell <maxwelb@google.com> | 2015-11-12 14:31:27 -0800 |
commit | d81cc6c64f3213f571c1f1e7a5c7e59b71491fb0 (patch) | |
tree | ec3ff1d64fa79e7e0728f16dc95be7b113ef3340 /src/com/android/dialer/CallDetailActivity.java | |
parent | 07c23f071adc133571613766174812bd21b25a79 (diff) |
Adding Logging to call blocking interactions
+ Added Clearcut logging when users block, unblock, undo,
or import blocked numbers. Location of blocking is noted, e.g. CallLog,
CallDetails, ManagementScreen
+ Added class with Constants matching proto definition
Bug: 25288435
Change-Id: I7fbef52d0e31b49c31dadbc0b4d775969d97420a
Diffstat (limited to 'src/com/android/dialer/CallDetailActivity.java')
-rw-r--r-- | src/com/android/dialer/CallDetailActivity.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/com/android/dialer/CallDetailActivity.java b/src/com/android/dialer/CallDetailActivity.java index 1f9e476ed..88d3fe2d6 100644 --- a/src/com/android/dialer/CallDetailActivity.java +++ b/src/com/android/dialer/CallDetailActivity.java @@ -57,6 +57,8 @@ import com.android.dialer.database.FilteredNumberAsyncQueryHandler; import com.android.dialer.database.FilteredNumberAsyncQueryHandler.OnCheckBlockedListener; import com.android.dialer.filterednumber.BlockNumberDialogFragment; import com.android.dialer.filterednumber.FilteredNumbersUtil; +import com.android.dialer.logging.InteractionEvent; +import com.android.dialer.logging.Logger; import com.android.dialer.util.DialerUtils; import com.android.dialer.util.IntentUtil.CallIntentBuilder; import com.android.dialer.util.PhoneNumberUtil; @@ -380,7 +382,14 @@ public class CallDetailActivity extends AppCompatActivity } @Override - public void onChangeFilteredNumberSuccess() { + public void onFilterNumberSuccess() { + Logger.logInteraction(InteractionEvent.BLOCK_NUMBER_CALL_DETAIL); + updateFilteredNumberChanges(); + } + + @Override + public void onUnfilterNumberSuccess() { + Logger.logInteraction(InteractionEvent.UNBLOCK_NUMBER_CALL_DETAIL); updateFilteredNumberChanges(); } |