There is a fragment in which there is a request to the database, then the data is transferred to RecyclerView to form a list. Clicking on the list item opens the activity, there is a delete button. By tapu on the button there is a request to the database for deletion and the activity is closed through the finish.
In the onResume() method, the list item is caught, which was also deleted via mAdapter.notifyItemRemoved(deleteItem); There is an animated hiding of this item from the list.
Everything is fine, but at the bottom of the screen there is a duplicate of the last visible item on the list. After searching, I came across several examples of the same solution - adding my method to the adapter to update the list and access this method. One of these examples is described in this answer from pavlofff
But for some reason, when I refer to the adapter method in onResume() or onCreateView() the method name itself is highlighted in red (as if there is no method), and in the adapter itself, the method name is highlighted in gray (as if the method is not used) and of course nothing works.

onResumeand the method itself in the adapter. Look here please. - GamletmyAdapter. If you cannot call the method described in the adapter, then, apparently, its type is not defined asRecyclerAdapterTab1, but something likeRecyclerView.Adapter. Those.RecyclerView.Adapter mAdapter. If so, you just need to replace the type of the variable with the type of your adapter, i.e. onRecyclerAdapterTab1. Well, or to him when calling the method. - Yuriy SPb ♦