Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4bb94b35 authored by Brian Attwell's avatar Brian Attwell
Browse files

Don't cast LegacyAdapter to NonLegacyAdapter

Bug: 20681571
Change-Id: I32a8e9df31eead4068ceb7c7c39b07f7144fee91
(cherry picked from commit e48aefc4)
parent 698ff30e
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -41,6 +41,12 @@ public class LegacyPhoneNumberPickerFragment extends PhoneNumberPickerFragment {
        return adapter.getPhoneUri(position);
    }

    @Override
    protected String getLookupKey(int position) {
        // There is no lookup key for the legacy adapter.
        return null;
    }

    @Override
    protected ContactEntryListAdapter createListAdapter() {
        LegacyPhoneNumberListAdapter adapter = new LegacyPhoneNumberListAdapter(getActivity());