Merge pull request #2549 from vt0r/bugfix/android_o_rename_dup_method
Rename Fragment.getLayoutInflater() for Android O+
This commit is contained in:
commit
2a1580434d
2 changed files with 2 additions and 2 deletions
|
@ -74,7 +74,7 @@ public class MessageListAdapter extends CursorAdapter {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public View newView(Context context, Cursor cursor, ViewGroup parent) {
|
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);
|
MessageViewHolder holder = new MessageViewHolder(fragment);
|
||||||
holder.date = (TextView) view.findViewById(R.id.date);
|
holder.date = (TextView) view.findViewById(R.id.date);
|
||||||
|
|
|
@ -2913,7 +2913,7 @@ public class MessageListFragment extends Fragment implements OnItemClickListener
|
||||||
return (isRemoteSearchAllowed() || isCheckMailAllowed());
|
return (isRemoteSearchAllowed() || isCheckMailAllowed());
|
||||||
}
|
}
|
||||||
|
|
||||||
LayoutInflater getLayoutInflater() {
|
LayoutInflater getK9LayoutInflater() {
|
||||||
return layoutInflater;
|
return layoutInflater;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue