summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2018-03-16 02:56:26 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-03-16 02:56:26 +0000
commitfd3c288a48570bbc13fa0e24ac7af5f6a137b6fd (patch)
tree4248da8f7ba1aeba06675bad144a18fdc6cfd513 /java
parentb548b9708c434f790090baea84d67117579c9459 (diff)
parent5383bcafc1bce990968922e066ac627878bbf085 (diff)
Merge "Restore delete call log item logging in call details."
Diffstat (limited to 'java')
-rw-r--r--java/com/android/dialer/app/calllog/CallLogListItemViewHolder.java1
-rw-r--r--java/com/android/dialer/calldetails/CallDetailsActivityCommon.java1
2 files changed, 2 insertions, 0 deletions
diff --git a/java/com/android/dialer/app/calllog/CallLogListItemViewHolder.java b/java/com/android/dialer/app/calllog/CallLogListItemViewHolder.java
index 94bd93368..8fbc459ca 100644
--- a/java/com/android/dialer/app/calllog/CallLogListItemViewHolder.java
+++ b/java/com/android/dialer/app/calllog/CallLogListItemViewHolder.java
@@ -441,6 +441,7 @@ public final class CallLogListItemViewHolder extends RecyclerView.ViewHolder
blockReportListener.onReportNotSpam(
displayNumber, number, countryIso, callType, info.sourceType);
} else if (resId == R.id.context_menu_delete) {
+ Logger.get(context).logImpression(DialerImpression.Type.USER_DELETED_CALL_LOG_ITEM);
AsyncTaskExecutors.createAsyncTaskExecutor()
.submit(TASK_DELETE, new DeleteCallTask(context, callIds));
}
diff --git a/java/com/android/dialer/calldetails/CallDetailsActivityCommon.java b/java/com/android/dialer/calldetails/CallDetailsActivityCommon.java
index 45200b9ce..dea1b8cda 100644
--- a/java/com/android/dialer/calldetails/CallDetailsActivityCommon.java
+++ b/java/com/android/dialer/calldetails/CallDetailsActivityCommon.java
@@ -350,6 +350,7 @@ abstract class CallDetailsActivityCommon extends AppCompatActivity {
@Override
public void delete() {
CallDetailsActivityCommon activity = getActivity();
+ Logger.get(activity).logImpression(DialerImpression.Type.USER_DELETED_CALL_LOG_ITEM);
DialerExecutorComponent.get(activity)
.dialerExecutorFactory()
.createNonUiTaskBuilder(new DeleteCallsWorker(activity))