diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2018-04-18 03:01:22 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-04-18 03:01:22 +0000 |
commit | e24966c56456d4f0239ea5bef9c4ae0ef4c27cad (patch) | |
tree | 16ebff1ec0ab1caf3331d0609a892e45bad32d25 /java/com/android/dialer/app | |
parent | d92873ffb4f8563294924c7dcf2d8bf840b4ebb5 (diff) | |
parent | 6dfdbbbd85d702c638188ab6be39df4d6621f2d1 (diff) |
Merge "Add spam blocking promotion after showing spam dialog in after-call notification"
Diffstat (limited to 'java/com/android/dialer/app')
-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 */); + } + } } |