1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-11-22 14:47:29 +00:00

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.R;
import awais.instagrabber.databinding.ActivityDirectMessagesBinding; 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 { public class DirectMessagesActivity extends BaseLanguageActivity implements NavController.OnDestinationChangedListener {
@ -51,7 +51,7 @@ public class DirectMessagesActivity extends BaseLanguageActivity implements NavC
if (arguments == null) { if (arguments == null) {
return; return;
} }
final String title = DirectMessagesThreadFragmentArgs.fromBundle(arguments).getTitle(); final String title = DirectMessageThreadFragmentArgs.fromBundle(arguments).getTitle();
setToolbarTitle(title); setToolbarTitle(title);
return; return;
} }

View File

@ -96,7 +96,7 @@ public class DirectMessageInboxFragment extends Fragment implements SwipeRefresh
layoutManager = new LinearLayoutManager(requireContext()); layoutManager = new LinearLayoutManager(requireContext());
inboxList.setLayoutManager(layoutManager); inboxList.setLayoutManager(layoutManager);
final DirectMessageInboxAdapter inboxAdapter = new DirectMessageInboxAdapter(inboxThreadModel -> { 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); NavHostFragment.findNavController(this).navigate(action);
}); });
inboxList.setAdapter(inboxAdapter); inboxList.setAdapter(inboxAdapter);

View File

@ -160,7 +160,7 @@ public class DirectMessageThreadFragment extends Fragment {
if (getArguments() == null) { if (getArguments() == null) {
return root; return root;
} }
threadId = DirectMessagesThreadFragmentArgs.fromBundle(getArguments()).getThreadId(); threadId = DirectMessageThreadFragmentArgs.fromBundle(getArguments()).getThreadId();
binding.swipeRefreshLayout.setEnabled(false); binding.swipeRefreshLayout.setEnabled(false);
messageList = binding.messageList; messageList = binding.messageList;
messageList.setHasFixedSize(true); messageList.setHasFixedSize(true);