From 9c09db6afdf47a7e5564ea945e80728f442661be Mon Sep 17 00:00:00 2001 From: Brandon Maxwell Date: Wed, 4 Nov 2015 16:40:31 -0800 Subject: Blocking number takes user back to blocked numbers list Bug:25456614 Change-Id: I6fdd34a0d619053d632e7364fc8ccaba8f8ef15f --- src/com/android/dialer/list/BlockedListSearchFragment.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/com/android/dialer') diff --git a/src/com/android/dialer/list/BlockedListSearchFragment.java b/src/com/android/dialer/list/BlockedListSearchFragment.java index 08a9c49ce..94036ae81 100644 --- a/src/com/android/dialer/list/BlockedListSearchFragment.java +++ b/src/com/android/dialer/list/BlockedListSearchFragment.java @@ -15,6 +15,7 @@ */ package com.android.dialer.list; +import android.app.Activity; import android.os.Bundle; import android.support.v7.app.ActionBar; import android.support.v7.app.AppCompatActivity; @@ -182,7 +183,7 @@ public class BlockedListSearchFragment extends RegularSearchFragment number, R.id.blocked_numbers_activity_container, getFragmentManager(), - null /* callback */); + BlockedListSearchFragment.this); } else { Toast.makeText(getContext(), getString(R.string.alreadyBlocked, number), Toast.LENGTH_SHORT).show(); @@ -199,7 +200,7 @@ public class BlockedListSearchFragment extends RegularSearchFragment @Override public void onChangeFilteredNumberSuccess() { - BlockedNumbersSettingsActivity activity = (BlockedNumbersSettingsActivity) getActivity(); + Activity activity = getActivity(); if (activity == null) { return; } -- cgit v1.2.3