Fix non-collapsing layout when scrolled from horiz recyclerview

Fixes #7042
// FREEBIE
pull/1/head
Moxie Marlinspike 8 years ago
parent 5a607918d2
commit 9fa4ba126b

@ -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"/>

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

@ -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) {

Loading…
Cancel
Save