Skip to content

Commit

Permalink
Merge pull request #25 from ahmedmed7t/bugFix/fix_VeilRecyclerFrame_v…
Browse files Browse the repository at this point in the history
…isiblity_bug

hide Veil recyclerView with gone
  • Loading branch information
skydoves authored Aug 26, 2022
2 parents 463d639 + 6f3da83 commit 16eb606
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,14 +248,14 @@ class VeilRecyclerFrameView : RelativeLayout {
private fun visibleVeilRecyclerView() {
this.veiledRecyclerView.visible()
this.veiledRecyclerView.bringToFront()
this.userRecyclerView.invisible()
this.userRecyclerView.gone()
}

/** Invisible veiledRecyclerView and Visible userRecyclerView. */
private fun visibleUserRecyclerView() {
this.userRecyclerView.visible()
this.userRecyclerView.bringToFront()
this.veiledRecyclerView.invisible()
this.veiledRecyclerView.gone()
}

/** Apply overscrollModel of parent to veiled and user recyclerview. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ internal fun View.visible() {
this.visibility = View.VISIBLE
}

@JvmSynthetic
internal fun View.gone() {
this.visibility = View.GONE
}

/** Makes invisible a view. */
@JvmSynthetic
internal fun View.invisible() {
Expand Down

0 comments on commit 16eb606

Please sign in to comment.