mirror of
https://gitlab.com/dadada_/uuidgen.git
synced 2025-06-07 17:43:57 +02:00
Fix global navigation
This commit is contained in:
parent
6e2bbbabf1
commit
7ec26bb4e6
2 changed files with 7 additions and 8 deletions
|
@ -28,7 +28,7 @@ class MainActivity : AppCompatActivity(), CoroutineScope by MainScope() {
|
|||
return when (item.itemId) {
|
||||
R.id.action_history -> {
|
||||
findNavController(R.id.nav_host_fragment)
|
||||
.navigate(R.id.action_uuid_gen_fragment_to_uuid_list_fragment)
|
||||
.navigate(R.id.action_global_uuid_list_fragment)
|
||||
true
|
||||
}
|
||||
else -> super.onOptionsItemSelected(item)
|
||||
|
|
|
@ -8,15 +8,14 @@
|
|||
<fragment
|
||||
android:id="@+id/uuid_gen_fragment"
|
||||
android:name="li.dadada.uuidgen.ui.UuidGenFragment"
|
||||
android:label="@string/first_fragment_label"
|
||||
tools:layout="@layout/uuid_list_fragment" >
|
||||
<action
|
||||
android:id="@+id/action_uuid_gen_fragment_to_uuid_list_fragment"
|
||||
app:destination="@id/uuid_list_fragment" />
|
||||
android:label="@string/first_fragment_label">
|
||||
</fragment>
|
||||
|
||||
<fragment
|
||||
android:id="@+id/uuid_list_fragment"
|
||||
android:name="li.dadada.uuidgen.ui.UuidListFragment"
|
||||
tools:layout="@layout/uuid_list_fragment" />
|
||||
android:name="li.dadada.uuidgen.ui.UuidListFragment" />
|
||||
|
||||
<action android:id="@+id/action_global_uuid_list_fragment"
|
||||
app:destination="@id/uuid_list_fragment"/>
|
||||
|
||||
</navigation>
|
Loading…
Add table
Add a link
Reference in a new issue