summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Maxwell <maxwelb@google.com>2015-11-06 18:49:30 +0000
committerandroid-build-merger <android-build-merger@google.com>2015-11-06 18:49:30 +0000
commita6a85acc8a8053e9e1ae61e0f06762fae10a28e2 (patch)
treeea1d0edf3a31861cdcd764ed24505956281a7870
parent46431118306644720f3c50b4d406263f3a32b456 (diff)
parentb031063587512b48a06ccab06934cecf6e0faec3 (diff)
Merge "Blocking number takes user back to blocked numbers list" into ub-contactsdialer-a-dev
am: b031063587 * commit 'b031063587512b48a06ccab06934cecf6e0faec3': Blocking number takes user back to blocked numbers list
-rw-r--r--src/com/android/dialer/list/BlockedListSearchFragment.java5
1 files changed, 3 insertions, 2 deletions
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;
}