From d994a776ad912c322a078b991fe6498c3f228d33 Mon Sep 17 00:00:00 2001 From: Anne Rong Date: Mon, 21 Sep 2015 18:16:02 -0700 Subject: Fix snackbar using out of scope View in blocked numbers list. Bug: 24272126, 24273593 Change-Id: I79f3ffbc745a914a11f9a61e5f06bb87be9d54de --- src/com/android/dialer/filterednumber/BlockedNumberAdapter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/com') diff --git a/src/com/android/dialer/filterednumber/BlockedNumberAdapter.java b/src/com/android/dialer/filterednumber/BlockedNumberAdapter.java index 504b5205b..5041ed849 100644 --- a/src/com/android/dialer/filterednumber/BlockedNumberAdapter.java +++ b/src/com/android/dialer/filterednumber/BlockedNumberAdapter.java @@ -89,7 +89,8 @@ public class BlockedNumberAdapter extends SimpleCursorAdapter { FilterNumberDialogFragment.newInstance(id, normalizedNumber, number, countryIso, displayNumber); newFragment.setQueryHandler(mFilteredNumberAsyncQueryHandler); - newFragment.setParentView(view); + newFragment.setParentView( + ((Activity) mContext).findViewById(R.id.blocked_number_fragment)); newFragment.show(((Activity) mContext).getFragmentManager(), FilterNumberDialogFragment.BLOCK_DIALOG_FRAGMENT); } -- cgit v1.2.3