drakeet / MultiType

Flexible multiple types for Android RecyclerView.
Apache License 2.0
5.76k stars 751 forks source link

[sample] OneToManyActivity's data expression not work as expected #276

Closed duquewu closed 5 years ago

duquewu commented 5 years ago

What kind of issue is this?

Info:
Description:
Expected Actual
Expected Actual

"title" + 1 + 2 这样的表达式会被转化为 "title".plus(1).plus(2),而不是预期的 "title"+(1+2),因此实际结果与预期结果不一致。

My thoughts:

"title" + 1 +2在 Java 中也会被 StringBuilder 转化为 "title".append(1).append(2),因此3.5 之前的版本的 sample 中也会存在这个问题。