Fix names of the gen. sources due to file renames

This commit is contained in:
Ammar Githam 2020-08-17 23:06:51 +09:00
parent 74f2b6f268
commit 1fe721010d
3 changed files with 4 additions and 4 deletions

View File

@ -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;
}

View File

@ -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);

View File

@ -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);