From 736c6bde5a2d1d300b049ed4c9f75f9e1db1f6e3 Mon Sep 17 00:00:00 2001 From: Brandon Maxwell Date: Mon, 7 Dec 2015 12:57:53 -0800 Subject: Changing BlockedNumbersAdapter to use Management container as parent The blocked_number_fragment gets removed from the BlockedNumbersSettingActivity when we change to the search view. Doing so causes a crash when we attempt to show a Snackbar with that fragment as the parent view. Instead we use the container for the Management screen since it doesn't get removed. Bug:26032803 Change-Id: I6b14447fa75eb2618f511799d4f947ab432611f9 --- src/com/android/dialer/filterednumber/BlockedNumbersAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/com/android/dialer/filterednumber/BlockedNumbersAdapter.java b/src/com/android/dialer/filterednumber/BlockedNumbersAdapter.java index e33b0f810..10a4f5abd 100644 --- a/src/com/android/dialer/filterednumber/BlockedNumbersAdapter.java +++ b/src/com/android/dialer/filterednumber/BlockedNumbersAdapter.java @@ -67,7 +67,7 @@ public class BlockedNumbersAdapter extends NumbersAdapter { number, countryIso, PhoneNumberUtils.formatNumber(number, countryIso), - R.id.blocked_number_fragment, + R.id.blocked_numbers_activity_container, getFragmentManager(), new BlockNumberDialogFragment.Callback() { @Override -- cgit v1.2.3