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:
@@ -212,6 +212,7 @@ constructor(context: Context, attrs: AttributeSet? = null, @AttrRes defStyleAttr
|
|||||||
val popupText: String
|
val popupText: String
|
||||||
val provider = popupProvider
|
val provider = popupProvider
|
||||||
if (firstPos != NO_POSITION && provider != null) {
|
if (firstPos != NO_POSITION && provider != null) {
|
||||||
|
popupView.isInvisible = false
|
||||||
// Get the popup text. If there is none, we default to "?".
|
// Get the popup text. If there is none, we default to "?".
|
||||||
popupText = provider.getPopup(firstPos) ?: "?"
|
popupText = provider.getPopup(firstPos) ?: "?"
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user