1
0
Fork 0
mirror of https://github.com/KokaKiwi/BarInsta synced 2026-03-05 12:01:35 +00:00

Converted SavedViewer activity to fragment

This commit is contained in:
Ammar Githam 2020-09-04 00:15:53 +09:00
parent 034dbfa147
commit 93fc9d82b9
19 changed files with 818 additions and 764 deletions

View file

@ -4,11 +4,11 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".activities.SavedViewer">
tools:context=".fragments.SavedViewerFragment">
<include
android:id="@+id/toolbar"
layout="@layout/layout_include_toolbar" />
<!--<include-->
<!-- android:id="@+id/toolbar"-->
<!-- layout="@layout/layout_include_toolbar" />-->
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
android:id="@+id/swipeRefreshLayout"

View file

@ -6,6 +6,7 @@
app:startDestination="@id/discoverFragment">
<include app:graph="@navigation/post_view_nav_graph" />
<include app:graph="@navigation/profile_nav_graph" />
<action
android:id="@+id/action_global_postViewFragment"

View file

@ -52,5 +52,26 @@
android:defaultValue=""
app:argType="string"
app:nullable="true" />
<action
android:id="@+id/action_profileFragment_to_savedViewerFragment"
app:destination="@id/savedViewerFragment" />
</fragment>
<fragment
android:id="@+id/savedViewerFragment"
android:name="awais.instagrabber.fragments.SavedViewerFragment"
android:label="Saved"
tools:layout="@layout/fragment_saved">
<argument
android:name="username"
app:argType="string"
app:nullable="false" />
<argument
android:name="profileId"
app:argType="string"
app:nullable="false" />
<argument
android:name="type"
app:argType="awais.instagrabber.models.enums.PostItemType"
app:nullable="false" />
</fragment>
</navigation>