Rename fragment.getLayoutInflater for Android O+
- This method name is a duplicate of a final method in class Landroid/app/Fragment. Renaming it resolves the conflict and fixes the crash on my Android O device.
This commit is contained in:
parent
da3bf8d679
commit
6e07396ea3
2 changed files with 2 additions and 2 deletions
|
@ -74,7 +74,7 @@ public class MessageListAdapter extends CursorAdapter {
|
|||
|
||||
@Override
|
||||
public View newView(Context context, Cursor cursor, ViewGroup parent) {
|
||||
View view = fragment.getLayoutInflater().inflate(R.layout.message_list_item, parent, false);
|
||||
View view = fragment.getK9LayoutInflater().inflate(R.layout.message_list_item, parent, false);
|
||||
|
||||
MessageViewHolder holder = new MessageViewHolder(fragment);
|
||||
holder.date = (TextView) view.findViewById(R.id.date);
|
||||
|
|
|
@ -2913,7 +2913,7 @@ public class MessageListFragment extends Fragment implements OnItemClickListener
|
|||
return (isRemoteSearchAllowed() || isCheckMailAllowed());
|
||||
}
|
||||
|
||||
LayoutInflater getLayoutInflater() {
|
||||
LayoutInflater getK9LayoutInflater() {
|
||||
return layoutInflater;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue