Browse Source

Fix names of the gen. sources due to file renames

legacy
Ammar Githam 4 years ago
parent
commit
1fe721010d
  1. 4
      app/src/main/java/awais/instagrabber/activities/DirectMessagesActivity.java
  2. 2
      app/src/main/java/awais/instagrabber/fragments/directmessages/DirectMessageInboxFragment.java
  3. 2
      app/src/main/java/awais/instagrabber/fragments/directmessages/DirectMessageThreadFragment.java

4
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.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;
} }

2
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()); 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);

2
app/src/main/java/awais/instagrabber/fragments/directmessages/DirectMessageThreadFragment.java

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

Loading…
Cancel
Save