Skip to content
Snippets Groups Projects
Commit dfd9cae2 authored by Taras's avatar Taras
Browse files

Setup navigation

parent 7afe5431
No related branches found
No related tags found
No related merge requests found
......@@ -70,4 +70,10 @@ class TimelineNavigator(private val fragment: TimelineDialogFragment) {
TimelineDialogFragmentDirections.toThreadTimeline(roomId, threadEventId)
)
}
fun navigatePostMenu(roomId: String, eventId: String) {
fragment.findNavController().navigateSafe(
TimelineDialogFragmentDirections.toPostMenuBottomSheet(roomId, eventId)
)
}
}
\ No newline at end of file
......@@ -191,6 +191,21 @@
app:argType="org.futo.circles.core.model.CircleRoomTypeArg"
app:nullable="false" />
</action>
<action
android:id="@+id/to_postMenuBottomSheet"
app:destination="@id/postMenuBottomSheet" >
<argument
android:name="roomId"
app:argType="string"
app:nullable="false" />
<argument
android:name="eventId"
app:argType="string"
app:nullable="false" />
</action>
</dialog>
......@@ -332,4 +347,20 @@
</dialog>
<include app:graph="@navigation/timeline_options_nav_graph" />
<dialog
android:id="@+id/postMenuBottomSheet"
android:name="org.futo.circles.feature.timeline.post.menu.PostMenuBottomSheet"
tools:layout="@layout/bottom_sheet_post_menu">
<argument
android:name="roomId"
app:argType="string"
app:nullable="false" />
<argument
android:name="eventId"
app:argType="string"
app:nullable="false" />
</dialog>
</navigation>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment