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:
Salvatore LaMendola 2017-05-24 23:45:58 -04:00
parent da3bf8d679
commit 6e07396ea3
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -2913,7 +2913,7 @@ public class MessageListFragment extends Fragment implements OnItemClickListener
return (isRemoteSearchAllowed() || isCheckMailAllowed());
}
LayoutInflater getLayoutInflater() {
LayoutInflater getK9LayoutInflater() {
return layoutInflater;
}
}