Merge "Fix settings gear visibility" into sc-dev am: 32fe72cfb9 am: 1deebe4097
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15095286 Change-Id: Id583b0f98b9b3a1cc0e747ee365330af68f24ef7
This commit is contained in:
@@ -236,7 +236,7 @@ class MediaCarouselScrollHandler(
|
||||
}
|
||||
|
||||
private fun updateSettingsPresentation() {
|
||||
if (showsSettingsButton) {
|
||||
if (showsSettingsButton && settingsButton.width > 0) {
|
||||
val settingsOffset = MathUtils.map(
|
||||
0.0f,
|
||||
getMaxTranslation().toFloat(),
|
||||
|
||||
Reference in New Issue
Block a user