mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-22 14:47:29 +00:00
fix navigation actions for fdroid
This commit is contained in:
parent
51f76a6c3c
commit
f584b51f64
@ -354,8 +354,7 @@ public class DirectMessageSettingsFragment extends Fragment implements ConfirmDi
|
|||||||
}
|
}
|
||||||
if (TextUtils.isEmpty(user.getUsername())) return;
|
if (TextUtils.isEmpty(user.getUsername())) return;
|
||||||
final ProfileNavGraphDirections.ActionGlobalProfileFragment directions = ProfileNavGraphDirections
|
final ProfileNavGraphDirections.ActionGlobalProfileFragment directions = ProfileNavGraphDirections
|
||||||
.actionGlobalProfileFragment()
|
.actionGlobalProfileFragment("@" + user.getUsername());
|
||||||
.setUsername("@" + user.getUsername());
|
|
||||||
NavHostFragment.findNavController(this).navigate(directions);
|
NavHostFragment.findNavController(this).navigate(directions);
|
||||||
},
|
},
|
||||||
(position, user) -> {
|
(position, user) -> {
|
||||||
@ -393,8 +392,7 @@ public class DirectMessageSettingsFragment extends Fragment implements ConfirmDi
|
|||||||
@Override
|
@Override
|
||||||
public void onClick(final int position, final PendingUser pendingUser) {
|
public void onClick(final int position, final PendingUser pendingUser) {
|
||||||
final ProfileNavGraphDirections.ActionGlobalProfileFragment directions = ProfileNavGraphDirections
|
final ProfileNavGraphDirections.ActionGlobalProfileFragment directions = ProfileNavGraphDirections
|
||||||
.actionGlobalProfileFragment()
|
.actionGlobalProfileFragment("@" + pendingUser.getUser().getUsername());
|
||||||
.setUsername("@" + pendingUser.getUser().getUsername());
|
|
||||||
NavHostFragment.findNavController(DirectMessageSettingsFragment.this).navigate(directions);
|
NavHostFragment.findNavController(DirectMessageSettingsFragment.this).navigate(directions);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1447,8 +1447,7 @@ public class DirectMessageThreadFragment extends Fragment implements DirectReact
|
|||||||
|
|
||||||
private void navigateToUser(@NonNull final String username) {
|
private void navigateToUser(@NonNull final String username) {
|
||||||
final ProfileNavGraphDirections.ActionGlobalProfileFragment direction = ProfileNavGraphDirections
|
final ProfileNavGraphDirections.ActionGlobalProfileFragment direction = ProfileNavGraphDirections
|
||||||
.actionGlobalProfileFragment()
|
.actionGlobalProfileFragment("@" + username);
|
||||||
.setUsername("@" + username);
|
|
||||||
NavHostFragment.findNavController(DirectMessageThreadFragment.this).navigate(direction);
|
NavHostFragment.findNavController(DirectMessageThreadFragment.this).navigate(direction);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
<argument
|
<argument
|
||||||
android:name="username"
|
android:name="username"
|
||||||
app:argType="string"
|
app:argType="string"
|
||||||
app:nullable="true" />
|
app:nullable="false" />
|
||||||
</action>
|
</action>
|
||||||
|
|
||||||
<action
|
<action
|
||||||
|
@ -56,7 +56,6 @@
|
|||||||
app:destination="@id/profile_nav_graph">
|
app:destination="@id/profile_nav_graph">
|
||||||
<argument
|
<argument
|
||||||
android:name="username"
|
android:name="username"
|
||||||
android:defaultValue=""
|
|
||||||
app:argType="string"
|
app:argType="string"
|
||||||
app:nullable="false" />
|
app:nullable="false" />
|
||||||
</action>
|
</action>
|
||||||
@ -82,6 +81,9 @@
|
|||||||
android:name="targetId"
|
android:name="targetId"
|
||||||
android:defaultValue="0L"
|
android:defaultValue="0L"
|
||||||
app:argType="long" />
|
app:argType="long" />
|
||||||
|
<action
|
||||||
|
android:id="@+id/action_notifications_to_story"
|
||||||
|
app:destination="@id/storyViewerFragment" />
|
||||||
</action>
|
</action>
|
||||||
|
|
||||||
<fragment
|
<fragment
|
||||||
|
Loading…
Reference in New Issue
Block a user