Skip to content

Commit

Permalink
Tiny visual improvements in transfers' RecyclerView
Browse files Browse the repository at this point in the history
  • Loading branch information
JuancaG05 committed Aug 10, 2022
1 parent b11b328 commit d0791b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ class TransferListFragment : Fragment() {
}

transfersViewModel.transfersListLiveData.observe(viewLifecycleOwner) { transfers ->
val recyclerViewState = binding.transfersRecyclerView.layoutManager?.onSaveInstanceState()
setData(transfers)
binding.transfersRecyclerView.layoutManager?.onRestoreInstanceState(recyclerViewState)
}

transfersViewModel.workInfosListLiveData.observe(viewLifecycleOwner) { workInfos ->
Expand Down
1 change: 1 addition & 0 deletions owncloudApp/src/main/res/layout/upload_list_group.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
android:layout_width="wrap_content"
android:layout_height="0dp"
android:visibility="gone"
android:layout_marginStart="13dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/uploadListGroupName"
android:text="@string/action_upload_clear"
Expand Down

0 comments on commit d0791b8

Please sign in to comment.