diff options
Diffstat (limited to 'java/com/android/dialer/app/calllog')
-rw-r--r-- | java/com/android/dialer/app/calllog/BlockReportSpamListener.java | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/java/com/android/dialer/app/calllog/BlockReportSpamListener.java b/java/com/android/dialer/app/calllog/BlockReportSpamListener.java index d52ac3241..551791850 100644 --- a/java/com/android/dialer/app/calllog/BlockReportSpamListener.java +++ b/java/com/android/dialer/app/calllog/BlockReportSpamListener.java @@ -97,7 +97,7 @@ public class BlockReportSpamListener implements CallLogListItemViewHolder.OnClic countryIso); if (isSpamChecked) { - spamBlockingPromoHelper.showSpamBlockingPromoDialog(rootView, fragmentManager); + showSpamBlockingPromoDialog(); } }, null) @@ -136,8 +136,7 @@ public class BlockReportSpamListener implements CallLogListItemViewHolder.OnClic }, number, countryIso); - - spamBlockingPromoHelper.showSpamBlockingPromoDialog(rootView, fragmentManager); + showSpamBlockingPromoDialog(); }, null) .show(fragmentManager, BlockReportSpamDialogs.BLOCK_DIALOG_TAG); @@ -205,4 +204,13 @@ public class BlockReportSpamListener implements CallLogListItemViewHolder.OnClic null) .show(fragmentManager, BlockReportSpamDialogs.NOT_SPAM_DIALOG_TAG); } + + private void showSpamBlockingPromoDialog() { + if (spamBlockingPromoHelper.shouldShowSpamBlockingPromo()) { + spamBlockingPromoHelper.showSpamBlockingPromoDialog( + fragmentManager, + success -> spamBlockingPromoHelper.showModifySettingOnCompleteSnackbar(rootView, success), + null /* onDissmissListener */); + } + } } |