Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5383bcaf authored by calderwoodra's avatar calderwoodra Committed by Copybara-Service
Browse files

Restore delete call log item logging in call details.

This was accidentally removed in cl/176677167. This change restores
the logging in call details and also adds it to the call log menu.

Bug: 73774284
Test: OldCallDetailsActivityIntegrationTest, CallLogActivityIntegrationTest
PiperOrigin-RevId: 189279107
Change-Id: Iadda16d7f1e4d720f828b5a72f210bcb8029f939
parent ae3bc3d8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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));
    }
+1 −0
Original line number Diff line number Diff line
@@ -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))