Skip to content

Commit 0ea9f39

Browse files
committed
Stop active scroll when emoji category is tapped
1 parent 967485b commit 0ea9f39

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/src/main/kotlin/com/simplemobiletools/keyboard/views/MyKeyboardView.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1580,6 +1580,7 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut
15801580
it.imageTintList = ColorStateList.valueOf(inactiveColor)
15811581
}
15821582
root.imageTintList = ColorStateList.valueOf(context.getProperPrimaryColor())
1583+
keyboardViewBinding?.emojisList?.stopScroll()
15831584
(keyboardViewBinding?.emojisList?.layoutManager as? GridLayoutManager)?.scrollToPositionWithOffset(
15841585
allItems.indexOfFirst { it is EmojisAdapter.Item.Category && it.value == category },
15851586
0

0 commit comments

Comments
 (0)