Merge "Fix settings gear visibility" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
32fe72cfb9
@@ -236,7 +236,7 @@ class MediaCarouselScrollHandler(
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun updateSettingsPresentation() {
|
private fun updateSettingsPresentation() {
|
||||||
if (showsSettingsButton) {
|
if (showsSettingsButton && settingsButton.width > 0) {
|
||||||
val settingsOffset = MathUtils.map(
|
val settingsOffset = MathUtils.map(
|
||||||
0.0f,
|
0.0f,
|
||||||
getMaxTranslation().toFloat(),
|
getMaxTranslation().toFloat(),
|
||||||
|
|||||||
Reference in New Issue
Block a user