From 1fe721010d0938693e8136f07cb67fad4843bad6 Mon Sep 17 00:00:00 2001 From: Ammar Githam Date: Mon, 17 Aug 2020 23:06:51 +0900 Subject: [PATCH] Fix names of the gen. sources due to file renames --- .../awais/instagrabber/activities/DirectMessagesActivity.java | 4 ++-- .../fragments/directmessages/DirectMessageInboxFragment.java | 2 +- .../fragments/directmessages/DirectMessageThreadFragment.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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);