diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2018-03-08 20:26:43 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-03-08 20:26:43 +0000 |
commit | e67eb83476525df47dce254c5c267191668bf042 (patch) | |
tree | f432cab51154071587b7d7fcf55c93796103d368 /java/com/android/dialer/app/calllog | |
parent | d2186758f163f0808379cfdce56223032ed8b437 (diff) | |
parent | e987eb096f40ab987690e9bd10b058ef2dfe2de3 (diff) |
Merge "Implement logic for blocking a number from the new call log's bottom sheet."
Diffstat (limited to 'java/com/android/dialer/app/calllog')
-rw-r--r-- | java/com/android/dialer/app/calllog/BlockReportSpamListener.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/java/com/android/dialer/app/calllog/BlockReportSpamListener.java b/java/com/android/dialer/app/calllog/BlockReportSpamListener.java index c8f8f0cf4..ecf629e14 100644 --- a/java/com/android/dialer/app/calllog/BlockReportSpamListener.java +++ b/java/com/android/dialer/app/calllog/BlockReportSpamListener.java @@ -22,6 +22,8 @@ import android.support.annotation.NonNull; import android.support.v7.widget.RecyclerView; import com.android.dialer.blocking.FilteredNumberAsyncQueryHandler; import com.android.dialer.blockreportspam.BlockReportSpamDialogs; +import com.android.dialer.blockreportspam.BlockReportSpamDialogs.DialogFragmentForReportingNotSpam; +import com.android.dialer.blockreportspam.BlockReportSpamDialogs.DialogFragmentForUnblockingNumberAndReportingAsNotSpam; import com.android.dialer.common.LogUtil; import com.android.dialer.logging.ContactSource; import com.android.dialer.logging.DialerImpression; @@ -58,7 +60,7 @@ public class BlockReportSpamListener implements CallLogListItemViewHolder.OnClic final String countryIso, final int callType, @NonNull final ContactSource.Type contactSourceType) { - BlockReportSpamDialogs.BlockReportSpamDialogFragment.newInstance( + BlockReportSpamDialogs.DialogFragmentForBlockingNumberAndOptionallyReportingAsSpam.newInstance( displayNumber, spam.isDialogReportSpamCheckedByDefault(), isSpamChecked -> { @@ -95,7 +97,7 @@ public class BlockReportSpamListener implements CallLogListItemViewHolder.OnClic final String countryIso, final int callType, @NonNull final ContactSource.Type contactSourceType) { - BlockReportSpamDialogs.BlockDialogFragment.newInstance( + BlockReportSpamDialogs.DialogFragmentForBlockingNumberAndReportingAsSpam.newInstance( displayNumber, spam.isSpamEnabled(), () -> { @@ -134,7 +136,7 @@ public class BlockReportSpamListener implements CallLogListItemViewHolder.OnClic final ContactSource.Type contactSourceType, final boolean isSpam, final Integer blockId) { - BlockReportSpamDialogs.UnblockDialogFragment.newInstance( + DialogFragmentForUnblockingNumberAndReportingAsNotSpam.newInstance( displayNumber, isSpam, () -> { @@ -168,7 +170,7 @@ public class BlockReportSpamListener implements CallLogListItemViewHolder.OnClic final String countryIso, final int callType, final ContactSource.Type contactSourceType) { - BlockReportSpamDialogs.ReportNotSpamDialogFragment.newInstance( + DialogFragmentForReportingNotSpam.newInstance( displayNumber, () -> { LogUtil.i("BlockReportSpamListener.onReportNotSpam", "onClick"); |