Browse Source

Fix collapsing toolbar with covers

renovate/org.robolectric-robolectric-4.x
Ammar Githam 4 years ago
parent
commit
59c8a325fe
  1. 1
      app/src/main/java/awais/instagrabber/fragments/main/ProfileFragment.java
  2. 2
      app/src/main/res/layout/fragment_collection_posts.xml
  3. 2
      app/src/main/res/layout/fragment_topic_posts.xml

1
app/src/main/java/awais/instagrabber/fragments/main/ProfileFragment.java

@ -343,7 +343,6 @@ public class ProfileFragment extends Fragment implements SwipeRefreshLayout.OnRe
}
}
if (username == null || !username.equals(this.username)) {
fragmentActivity.setCollapsingView(profileDetailsBinding.getRoot());
shouldRefresh = true;
return root;
}

2
app/src/main/res/layout/fragment_collection_posts.xml

@ -15,6 +15,7 @@
android:id="@+id/collapsing_toolbar_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:contentScrim="?attr/toolbarColor"
app:layout_scrollFlags="scroll|exitUntilCollapsed">
<FrameLayout
@ -39,6 +40,7 @@
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="@null"
app:layout_collapseMode="pin" />
</com.google.android.material.appbar.CollapsingToolbarLayout>
</com.google.android.material.appbar.AppBarLayout>

2
app/src/main/res/layout/fragment_topic_posts.xml

@ -15,6 +15,7 @@
android:id="@+id/collapsing_toolbar_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:contentScrim="?attr/toolbarColor"
app:layout_scrollFlags="scroll|exitUntilCollapsed">
<FrameLayout
@ -39,6 +40,7 @@
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="@null"
app:layout_collapseMode="pin" />
</com.google.android.material.appbar.CollapsingToolbarLayout>
</com.google.android.material.appbar.AppBarLayout>

Loading…
Cancel
Save