|
@ -347,14 +347,15 @@ public class DirectMessageSettingsFragment extends Fragment implements ConfirmDi |
|
|
usersAdapter = new DirectUsersAdapter( |
|
|
usersAdapter = new DirectUsersAdapter( |
|
|
inviter != null ? inviter.getPk() : -1, |
|
|
inviter != null ? inviter.getPk() : -1, |
|
|
(position, user, selected) -> { |
|
|
(position, user, selected) -> { |
|
|
if (!TextUtils.isEmpty(user.getFbId())) { |
|
|
|
|
|
|
|
|
if (TextUtils.isEmpty(user.getUsername()) && !TextUtils.isEmpty(user.getFbId())) { |
|
|
Utils.openURL(context, "https://facebook.com/" + user.getFbId()); |
|
|
Utils.openURL(context, "https://facebook.com/" + user.getFbId()); |
|
|
} else { |
|
|
|
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
if (TextUtils.isEmpty(user.getUsername())) return; |
|
|
final ProfileNavGraphDirections.ActionGlobalProfileFragment directions = ProfileNavGraphDirections |
|
|
final ProfileNavGraphDirections.ActionGlobalProfileFragment directions = ProfileNavGraphDirections |
|
|
.actionGlobalProfileFragment() |
|
|
.actionGlobalProfileFragment() |
|
|
.setUsername("@" + user.getUsername()); |
|
|
.setUsername("@" + user.getUsername()); |
|
|
NavHostFragment.findNavController(this).navigate(directions); |
|
|
NavHostFragment.findNavController(this).navigate(directions); |
|
|
} |
|
|
|
|
|
}, |
|
|
}, |
|
|
(position, user) -> { |
|
|
(position, user) -> { |
|
|
final ArrayList<Option<String>> options = viewModel.createUserOptions(user); |
|
|
final ArrayList<Option<String>> options = viewModel.createUserOptions(user); |
|
|