Migrate ScreenshotActivity to fragment

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2023-07-05 12:56:24 +05:30
parent a654896ba4
commit fc3dfaa747
10 changed files with 115 additions and 136 deletions

View File

@@ -21,7 +21,8 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
tools:context=".view.ui.details.ScreenshotFragment">
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"

View File

@@ -140,6 +140,17 @@
android:name="expandedStreamUrl"
app:argType="string" />
</fragment>
<fragment
android:id="@+id/screenshotFragment"
android:name="com.aurora.store.view.ui.details.ScreenshotFragment"
tools:layout="@layout/fragment_screenshot" >
<argument
android:name="position"
app:argType="integer" />
<argument
android:name="rawArtWorks"
app:argType="string" />
</fragment>
<action
android:id="@+id/action_global_appDetailsFragment"
app:destination="@id/appDetailsFragment" />
@@ -152,4 +163,7 @@
<action
android:id="@+id/action_global_expandedStreamBrowseFragment"
app:destination="@id/expandedStreamBrowseFragment" />
<action
android:id="@+id/action_global_screenshotFragment"
app:destination="@id/screenshotFragment" />
</navigation>