Remove MessageListFragment.layoutInflater
@@ -120,7 +120,6 @@ public class MessageListFragment extends Fragment implements OnItemClickListener
private boolean messageListLoaded;
private View footerView;
private FolderInfoHolder currentFolder;
- private LayoutInflater layoutInflater;
private MessagingController messagingController;
private Account account;
@@ -328,8 +327,6 @@ public class MessageListFragment extends Fragment implements OnItemClickListener
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
- layoutInflater = inflater;
-
View view = inflater.inflate(R.layout.message_list_fragment, container, false);
initializePullToRefresh(view);
@@ -475,7 +472,7 @@ public class MessageListFragment extends Fragment implements OnItemClickListener
requireContext(),
requireActivity().getTheme(),
getResources(),
- layoutInflater,
+ getLayoutInflater(),
ContactPicture.getContactPictureLoader(),
this,
getMessageListAppearance(),
@@ -1073,7 +1070,7 @@ public class MessageListFragment extends Fragment implements OnItemClickListener
private View getFooterView(ViewGroup parent) {
if (footerView == null) {
- footerView = layoutInflater.inflate(R.layout.message_list_item_footer, parent, false);
+ footerView = getLayoutInflater().inflate(R.layout.message_list_item_footer, parent, false);
FooterViewHolder holder = new FooterViewHolder();
holder.main = footerView.findViewById(R.id.main_text);
footerView.setTag(holder);
