diff options
author | Anne Rong <annerong@google.com> | 2015-09-22 18:16:53 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-09-22 18:16:53 +0000 |
commit | 2b5c6c275b9441b0140a24cbe4897a61e714c824 (patch) | |
tree | e8d910890165c802d90042827a9aee1620dc96a7 | |
parent | 47255058f46ce3a4823e45d97248cdcca236d790 (diff) | |
parent | d994a776ad912c322a078b991fe6498c3f228d33 (diff) |
Merge "Fix snackbar using out of scope View in blocked numbers list." into ub-contactsdialer-a-dev
-rw-r--r-- | res/layout/blocked_number_fragment.xml | 1 | ||||
-rw-r--r-- | src/com/android/dialer/filterednumber/BlockedNumberAdapter.java | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/res/layout/blocked_number_fragment.xml b/res/layout/blocked_number_fragment.xml index b1e4d0f57..bbface6de 100644 --- a/res/layout/blocked_number_fragment.xml +++ b/res/layout/blocked_number_fragment.xml @@ -15,6 +15,7 @@ --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:card_view="http://schemas.android.com/apk/res-auto" + android:id="@+id/blocked_number_fragment" android:orientation="vertical" android:background="@color/blocked_number_background" android:layout_width="match_parent" 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); } |