Permalink
Browse files

Add workaround for FAB showing when it shouldn't

  • Loading branch information...
chrisbanes committed Feb 9, 2019
1 parent 4234802 commit 709cd975ff7789a499d40826c6d1fe10815669eb
Showing with 6 additions and 2 deletions.
  1. +6 −2 app/src/main/java/app/tivi/showdetails/details/ShowDetailsFragment.kt
@@ -24,6 +24,8 @@ import android.view.View
import android.view.ViewGroup
import androidx.constraintlayout.motion.widget.MotionLayout
import androidx.core.os.bundleOf
import androidx.core.view.isGone
import androidx.core.view.isVisible
import app.tivi.R
import app.tivi.SharedElementHelper
import app.tivi.data.entities.ActionDate
@@ -106,11 +108,13 @@ class ShowDetailsFragment : TiviMvRxFragment() {
when (currentId) {
R.id.end -> {
binding.detailsAppbarBackground.cutProgress = 0f
binding.detailsPoster.visibility = View.GONE
binding.detailsPoster.isGone = true
binding.detailsFollowFab.isGone = true
}
R.id.start -> {
binding.detailsAppbarBackground.cutProgress = 1f
binding.detailsPoster.visibility = View.VISIBLE
binding.detailsPoster.isVisible = true
binding.detailsFollowFab.isVisible = true
}
}
}

0 comments on commit 709cd97

Please sign in to comment.