Merge "Fix settings gear visibility" into sc-dev

This commit is contained in:
Beth Thibodeau
2021-06-28 15:09:20 +00:00
committed by Android (Google) Code Review

View File

@@ -236,7 +236,7 @@ class MediaCarouselScrollHandler(
}
private fun updateSettingsPresentation() {
if (showsSettingsButton) {
if (showsSettingsButton && settingsButton.width > 0) {
val settingsOffset = MathUtils.map(
0.0f,
getMaxTranslation().toFloat(),