home: make thumb visible if provider is found

Make the thumb visible if a popup provider is found later.

Fixes an issue where the fast scroll thumb would only be visible
sometimes in the home view.
This commit is contained in:
Alexander Capehart 2022-08-29 09:40:55 -06:00
parent 4d02dfb578
commit 1ed6d75121
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47

View file

@ -212,6 +212,7 @@ constructor(context: Context, attrs: AttributeSet? = null, @AttrRes defStyleAttr
val popupText: String
val provider = popupProvider
if (firstPos != NO_POSITION && provider != null) {
popupView.isInvisible = false
// Get the popup text. If there is none, we default to "?".
popupText = provider.getPopup(firstPos) ?: "?"
} else {