mirror of
https://github.com/KokaKiwi/BarInsta
synced 2026-03-14 16:31:36 +00:00
fix navigation actions for fdroid
This commit is contained in:
parent
51f76a6c3c
commit
f584b51f64
4 changed files with 7 additions and 8 deletions
|
|
@ -354,8 +354,7 @@ public class DirectMessageSettingsFragment extends Fragment implements ConfirmDi
|
|||
}
|
||||
if (TextUtils.isEmpty(user.getUsername())) return;
|
||||
final ProfileNavGraphDirections.ActionGlobalProfileFragment directions = ProfileNavGraphDirections
|
||||
.actionGlobalProfileFragment()
|
||||
.setUsername("@" + user.getUsername());
|
||||
.actionGlobalProfileFragment("@" + user.getUsername());
|
||||
NavHostFragment.findNavController(this).navigate(directions);
|
||||
},
|
||||
(position, user) -> {
|
||||
|
|
@ -393,8 +392,7 @@ public class DirectMessageSettingsFragment extends Fragment implements ConfirmDi
|
|||
@Override
|
||||
public void onClick(final int position, final PendingUser pendingUser) {
|
||||
final ProfileNavGraphDirections.ActionGlobalProfileFragment directions = ProfileNavGraphDirections
|
||||
.actionGlobalProfileFragment()
|
||||
.setUsername("@" + pendingUser.getUser().getUsername());
|
||||
.actionGlobalProfileFragment("@" + pendingUser.getUser().getUsername());
|
||||
NavHostFragment.findNavController(DirectMessageSettingsFragment.this).navigate(directions);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1447,8 +1447,7 @@ public class DirectMessageThreadFragment extends Fragment implements DirectReact
|
|||
|
||||
private void navigateToUser(@NonNull final String username) {
|
||||
final ProfileNavGraphDirections.ActionGlobalProfileFragment direction = ProfileNavGraphDirections
|
||||
.actionGlobalProfileFragment()
|
||||
.setUsername("@" + username);
|
||||
.actionGlobalProfileFragment("@" + username);
|
||||
NavHostFragment.findNavController(DirectMessageThreadFragment.this).navigate(direction);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue