Fix non-collapsing layout when scrolled from horiz recyclerview

Fixes #7042
// FREEBIE
This commit is contained in:
Moxie Marlinspike 2017-10-08 17:36:35 -07:00
parent 5a607918d2
commit 9fa4ba126b
3 changed files with 3 additions and 2 deletions

View file

@ -75,6 +75,7 @@
android:padding="16dp"
android:text="@string/recipient_preference_activity__shared_media"
android:visibility="gone"
android:focusableInTouchMode="true"
style="?android:attr/preferenceCategoryStyle"
android:textColor="@color/textsecure_primary"/>

View file

@ -8,6 +8,6 @@
android:paddingLeft="16dp"
android:paddingStart="16dp"
android:clipToPadding="false"
android:nestedScrollingEnabled="true"
android:nestedScrollingEnabled="false"
android:scrollbars="none"/>
</merge>

View file

@ -51,7 +51,7 @@ public class ThreadPhotoRailView extends FrameLayout {
this.recyclerView = ViewUtil.findById(this, R.id.photo_list);
this.recyclerView.setLayoutManager(new LinearLayoutManager(context, LinearLayoutManager.HORIZONTAL, false));
this.recyclerView.setItemAnimator(new DefaultItemAnimator());
this.recyclerView.setNestedScrollingEnabled(true);
this.recyclerView.setNestedScrollingEnabled(false);
}
public void setListener(@Nullable OnItemClickedListener listener) {