提交 2b86a209 编写于 作者: C claraf3

fix CheeseViewModel insertSeparators comparison

上级 1a68de8a
......@@ -78,7 +78,8 @@ class CheeseViewModel(private val dao: CheeseDao) : ViewModel() {
} else if (before == null) {
// Header
CheeseListItem.Separator(after.name.first())
} else if (before.name.first() != after.name.first()) {
} else if (before.name.first().toLowerCase() !=
after.name.first().toLowerCase()) {
// Between two items that start with different letters.
CheeseListItem.Separator(after.name.first())
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册