Browse Source
Allow opening PostViewV2Fragment from NotificationsViewerFragment, StoryViewerFragment and when opening from a Share dialog
renovate/org.robolectric-robolectric-4.x
Allow opening PostViewV2Fragment from NotificationsViewerFragment, StoryViewerFragment and when opening from a Share dialog
renovate/org.robolectric-robolectric-4.x
14 changed files with 95 additions and 371 deletions
-
51app/src/main/java/awais/instagrabber/activities/MainActivity.java
-
21app/src/main/java/awais/instagrabber/fragments/NotificationsViewerFragment.java
-
153app/src/main/java/awais/instagrabber/fragments/PostViewV2Fragment.java
-
22app/src/main/java/awais/instagrabber/fragments/StoryViewerFragment.java
-
26app/src/main/res/layout/dialog_opening_post.xml
-
16app/src/main/res/navigation/direct_messages_nav_graph.xml
-
16app/src/main/res/navigation/discover_nav_graph.xml
-
16app/src/main/res/navigation/feed_nav_graph.xml
-
14app/src/main/res/navigation/hashtag_nav_graph.xml
-
14app/src/main/res/navigation/location_nav_graph.xml
-
15app/src/main/res/navigation/more_nav_graph.xml
-
85app/src/main/res/navigation/post_view_nav_graph.xml
-
16app/src/main/res/navigation/profile_nav_graph.xml
-
1app/src/main/res/values/strings.xml
@ -0,0 +1,26 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" |
|||
xmlns:app="http://schemas.android.com/apk/res-auto" |
|||
android:layout_width="match_parent" |
|||
android:layout_height="match_parent" |
|||
android:padding="16dp"> |
|||
|
|||
<ProgressBar |
|||
android:id="@+id/progress_bar" |
|||
android:layout_width="wrap_content" |
|||
android:layout_height="wrap_content" |
|||
android:indeterminate="true" |
|||
app:layout_constraintBottom_toBottomOf="parent" |
|||
app:layout_constraintStart_toStartOf="parent" |
|||
app:layout_constraintTop_toTopOf="parent" /> |
|||
|
|||
<androidx.appcompat.widget.AppCompatTextView |
|||
android:layout_width="0dp" |
|||
android:layout_height="wrap_content" |
|||
android:layout_marginStart="8dp" |
|||
android:text="@string/opening_post" |
|||
app:layout_constraintBottom_toBottomOf="parent" |
|||
app:layout_constraintEnd_toEndOf="parent" |
|||
app:layout_constraintStart_toEndOf="@id/progress_bar" |
|||
app:layout_constraintTop_toTopOf="parent" /> |
|||
</androidx.constraintlayout.widget.ConstraintLayout> |
@ -1,85 +0,0 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<navigation xmlns:android="http://schemas.android.com/apk/res/android" |
|||
xmlns:app="http://schemas.android.com/apk/res-auto" |
|||
xmlns:tools="http://schemas.android.com/tools" |
|||
android:id="@+id/post_view_nav_graph" |
|||
app:startDestination="@id/postViewFragment"> |
|||
|
|||
<include app:graph="@navigation/hashtag_nav_graph" /> |
|||
|
|||
<action |
|||
android:id="@+id/action_global_hashTagFragment" |
|||
app:destination="@id/hashtag_nav_graph"> |
|||
<argument |
|||
android:name="hashtag" |
|||
app:argType="string" |
|||
app:nullable="false" /> |
|||
</action> |
|||
<!--<include app:graph="@navigation/profile_nav_graph" />--> |
|||
|
|||
<action |
|||
android:id="@+id/action_global_profileFragment" |
|||
app:destination="@id/profile_nav_graph"> |
|||
<argument |
|||
android:name="username" |
|||
app:argType="string" |
|||
app:nullable="true" /> |
|||
</action> |
|||
|
|||
<include app:graph="@navigation/location_nav_graph" /> |
|||
|
|||
<action |
|||
android:id="@+id/action_global_locationFragment" |
|||
app:destination="@id/location_nav_graph"> |
|||
<argument |
|||
android:name="locationId" |
|||
app:argType="string" |
|||
app:nullable="false" /> |
|||
</action> |
|||
|
|||
<action |
|||
android:id="@+id/action_global_commentsViewerFragment" |
|||
app:destination="@id/comments_nav_graph"> |
|||
<argument |
|||
android:name="shortCode" |
|||
app:argType="string" |
|||
app:nullable="false" /> |
|||
<argument |
|||
android:name="postId" |
|||
app:argType="string" |
|||
app:nullable="false" /> |
|||
<argument |
|||
android:name="postUserId" |
|||
app:argType="string" |
|||
app:nullable="false" /> |
|||
</action> |
|||
|
|||
<fragment |
|||
android:id="@+id/postViewFragment" |
|||
android:name="awais.instagrabber.fragments.PostViewFragment" |
|||
tools:layout="@layout/item_full_post_view"> |
|||
<argument |
|||
android:name="index" |
|||
app:argType="integer" /> |
|||
<argument |
|||
android:name="idOrCodeArray" |
|||
app:argType="string[]" /> |
|||
<argument |
|||
android:name="isId" |
|||
app:argType="boolean" /> |
|||
</fragment> |
|||
<action |
|||
android:id="@+id/action_global_postViewFragment" |
|||
app:destination="@id/postViewFragment"> |
|||
<argument |
|||
android:name="index" |
|||
app:argType="integer" /> |
|||
<argument |
|||
android:name="idOrCodeArray" |
|||
app:argType="string[]" /> |
|||
<argument |
|||
android:name="isId" |
|||
app:argType="boolean" /> |
|||
</action> |
|||
|
|||
</navigation> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue