Skip to content

Commit

Permalink
[i108] make itemAnimator as nullable param (#4933)
Browse files Browse the repository at this point in the history
* [i108] make itemAnimator as nullable param

(cherry picked from commit 422647e)

* [i108] add CHANGELOG

---------

Co-authored-by: kanat <unknown>
  • Loading branch information
kanat authored Aug 25, 2023
1 parent e0eec1c commit 815fd56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
- Added `MessageComposerViewModelBinder` for Java parity with Kotlin's `MessageComposerViewModel.bindView` extension function. [#4931](https://github.com/GetStream/stream-chat-android/pull/4931)

### ⚠️ Changed
- Changed `MessageListView.setCustomItemAnimator` signature to allow passing `null` to reset the item animator. [#4933](https://github.com/GetStream/stream-chat-android/pull/4933)

### ❌ Removed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ public class MessageListView : ConstraintLayout {
* @param itemAnimator The ItemAnimator being set. If null, no animations will occur when changes occur
* to the items in this MessageListView.
*/
public fun setCustomItemAnimator(itemAnimator: ItemAnimator) {
public fun setCustomItemAnimator(itemAnimator: ItemAnimator?) {
binding.chatMessagesRV.itemAnimator = itemAnimator
}

Expand Down

0 comments on commit 815fd56

Please sign in to comment.