diff --git a/app/src/main/java/awais/instagrabber/activities/DirectMessagesActivity.java b/app/src/main/java/awais/instagrabber/activities/DirectMessagesActivity.java index c368cfb9..a3435d07 100644 --- a/app/src/main/java/awais/instagrabber/activities/DirectMessagesActivity.java +++ b/app/src/main/java/awais/instagrabber/activities/DirectMessagesActivity.java @@ -15,7 +15,7 @@ import androidx.navigation.ui.NavigationUI; import awais.instagrabber.R; import awais.instagrabber.databinding.ActivityDirectMessagesBinding; -import awais.instagrabber.fragments.directmessages.DirectMessagesThreadFragmentArgs; +import awais.instagrabber.fragments.directmessages.DirectMessageThreadFragmentArgs; public class DirectMessagesActivity extends BaseLanguageActivity implements NavController.OnDestinationChangedListener { @@ -51,7 +51,7 @@ public class DirectMessagesActivity extends BaseLanguageActivity implements NavC if (arguments == null) { return; } - final String title = DirectMessagesThreadFragmentArgs.fromBundle(arguments).getTitle(); + final String title = DirectMessageThreadFragmentArgs.fromBundle(arguments).getTitle(); setToolbarTitle(title); return; } diff --git a/app/src/main/java/awais/instagrabber/fragments/directmessages/DirectMessageInboxFragment.java b/app/src/main/java/awais/instagrabber/fragments/directmessages/DirectMessageInboxFragment.java index 9e9de547..9dfbf68a 100644 --- a/app/src/main/java/awais/instagrabber/fragments/directmessages/DirectMessageInboxFragment.java +++ b/app/src/main/java/awais/instagrabber/fragments/directmessages/DirectMessageInboxFragment.java @@ -96,7 +96,7 @@ public class DirectMessageInboxFragment extends Fragment implements SwipeRefresh layoutManager = new LinearLayoutManager(requireContext()); inboxList.setLayoutManager(layoutManager); final DirectMessageInboxAdapter inboxAdapter = new DirectMessageInboxAdapter(inboxThreadModel -> { - final NavDirections action = DirectMessagesInboxFragmentDirections.actionDMInboxFragmentToDMThreadFragment(inboxThreadModel.getThreadId(), inboxThreadModel.getThreadTitle()); + final NavDirections action = DirectMessageInboxFragmentDirections.actionDMInboxFragmentToDMThreadFragment(inboxThreadModel.getThreadId(), inboxThreadModel.getThreadTitle()); NavHostFragment.findNavController(this).navigate(action); }); inboxList.setAdapter(inboxAdapter); diff --git a/app/src/main/java/awais/instagrabber/fragments/directmessages/DirectMessageThreadFragment.java b/app/src/main/java/awais/instagrabber/fragments/directmessages/DirectMessageThreadFragment.java index 1e6b37f2..87d6f6da 100644 --- a/app/src/main/java/awais/instagrabber/fragments/directmessages/DirectMessageThreadFragment.java +++ b/app/src/main/java/awais/instagrabber/fragments/directmessages/DirectMessageThreadFragment.java @@ -160,7 +160,7 @@ public class DirectMessageThreadFragment extends Fragment { if (getArguments() == null) { return root; } - threadId = DirectMessagesThreadFragmentArgs.fromBundle(getArguments()).getThreadId(); + threadId = DirectMessageThreadFragmentArgs.fromBundle(getArguments()).getThreadId(); binding.swipeRefreshLayout.setEnabled(false); messageList = binding.messageList; messageList.setHasFixedSize(true);