Merge "Fix settings gear visibility" into sc-dev am: 32fe72cfb9

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15095286

Change-Id: I769f63836857d59d2a33996e577373dab2a9e6db
This commit is contained in:
Beth Thibodeau
2021-06-28 15:22:10 +00:00
committed by Automerger Merge Worker

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(),