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/list/BlockedListSearchFragment.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/list/BlockedListSearchFragment.java')
-rw-r--r-- | src/com/android/dialer/list/BlockedListSearchFragment.java | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/com/android/dialer/list/BlockedListSearchFragment.java b/src/com/android/dialer/list/BlockedListSearchFragment.java index 306847850..da6b42820 100644 --- a/src/com/android/dialer/list/BlockedListSearchFragment.java +++ b/src/com/android/dialer/list/BlockedListSearchFragment.java @@ -37,6 +37,8 @@ import com.android.dialer.R; import com.android.dialer.database.FilteredNumberAsyncQueryHandler; import com.android.dialer.database.FilteredNumberAsyncQueryHandler.OnCheckBlockedListener; import com.android.dialer.filterednumber.BlockNumberDialogFragment; +import com.android.dialer.logging.InteractionEvent; +import com.android.dialer.logging.Logger; import com.android.dialer.widget.SearchEditTextLayout; public class BlockedListSearchFragment extends RegularSearchFragment @@ -198,7 +200,18 @@ public class BlockedListSearchFragment extends RegularSearchFragment } @Override - public void onChangeFilteredNumberSuccess() { + public void onFilterNumberSuccess() { + Logger.logInteraction(InteractionEvent.BLOCK_NUMBER_MANAGEMENT_SCREEN); + goBack(); + } + + @Override + public void onUnfilterNumberSuccess() { + Log.wtf(TAG, "Unblocked a number from the BlockedListSearchFragment"); + goBack(); + } + + private void goBack() { Activity activity = getActivity(); if (activity == null) { return; |