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/incallui/spam/SpamNotificationActivity.java | |
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/incallui/spam/SpamNotificationActivity.java')
-rw-r--r-- | java/com/android/incallui/spam/SpamNotificationActivity.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/java/com/android/incallui/spam/SpamNotificationActivity.java b/java/com/android/incallui/spam/SpamNotificationActivity.java index 8919dc713..61d04a0d6 100644 --- a/java/com/android/incallui/spam/SpamNotificationActivity.java +++ b/java/com/android/incallui/spam/SpamNotificationActivity.java @@ -31,6 +31,8 @@ import com.android.dialer.blocking.BlockedNumbersMigrator; import com.android.dialer.blocking.FilteredNumberAsyncQueryHandler; import com.android.dialer.blocking.FilteredNumberCompat; import com.android.dialer.blockreportspam.BlockReportSpamDialogs; +import com.android.dialer.blockreportspam.BlockReportSpamDialogs.DialogFragmentForBlockingNumberAndOptionallyReportingAsSpam; +import com.android.dialer.blockreportspam.BlockReportSpamDialogs.DialogFragmentForReportingNotSpam; import com.android.dialer.common.LogUtil; import com.android.dialer.location.GeoUtil; import com.android.dialer.logging.ContactLookupResult; @@ -196,7 +198,7 @@ public class SpamNotificationActivity extends FragmentActivity { private void maybeShowNotSpamDialog( final String number, final ContactLookupResult.Type contactLookupResultType) { if (SpamComponent.get(this).spam().isDialogEnabledForSpamNotification()) { - BlockReportSpamDialogs.ReportNotSpamDialogFragment.newInstance( + DialogFragmentForReportingNotSpam.newInstance( getFormattedNumber(number, this), new BlockReportSpamDialogs.OnConfirmListener() { @Override @@ -220,7 +222,7 @@ public class SpamNotificationActivity extends FragmentActivity { new BlockedNumbersMigrator.Listener() { @Override public void onComplete() { - BlockReportSpamDialogs.BlockReportSpamDialogFragment.newInstance( + DialogFragmentForBlockingNumberAndOptionallyReportingAsSpam.newInstance( displayNumber, SpamComponent.get(SpamNotificationActivity.this) .spam() |