diff --git a/k9mail/src/main/java/com/fsck/k9/fragment/MessageListAdapter.java b/k9mail/src/main/java/com/fsck/k9/fragment/MessageListAdapter.java index e18c7beee..d90d179e1 100644 --- a/k9mail/src/main/java/com/fsck/k9/fragment/MessageListAdapter.java +++ b/k9mail/src/main/java/com/fsck/k9/fragment/MessageListAdapter.java @@ -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); diff --git a/k9mail/src/main/java/com/fsck/k9/fragment/MessageListFragment.java b/k9mail/src/main/java/com/fsck/k9/fragment/MessageListFragment.java index 9a2b18746..175066d06 100644 --- a/k9mail/src/main/java/com/fsck/k9/fragment/MessageListFragment.java +++ b/k9mail/src/main/java/com/fsck/k9/fragment/MessageListFragment.java @@ -2913,7 +2913,7 @@ public class MessageListFragment extends Fragment implements OnItemClickListener return (isRemoteSearchAllowed() || isCheckMailAllowed()); } - LayoutInflater getLayoutInflater() { + LayoutInflater getK9LayoutInflater() { return layoutInflater; } }