IsaiasCuvula/mvvm_note_app_kotlin_android_studio

Diffutil not working when change a field

danhtran12797 opened this issue · 6 comments

image

I tried demo update item[0], but Diffutil not working

Why are you trying to get and set list from diffutil in you click listen ? I won't work because, he first go to another screen and than he don't get t And set the values, from diffutil, so you need to get and set in different places! The questions is what do you want to do? Get or set values from diffutil ? Your current list you need to call it inside your adapter class ...

On Fri, Jul 2, 2021, 06:26 Danh @.***> wrote:

[image: image] https://user-images.githubusercontent.com/48312687/124216124-ad20a900-db1f-11eb-9ef0-14a91fedacc5.png I tried demo update item[0], but Diffutil not working — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#1 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQJDWZBUDZZ7M5FEV3AVXTDTVUWWTANCNFSM47V4KVQQ .

I'm just trying to make you understand "Diffutil not working when change a field". I tested on your source code Note App.

You change in source code, maybe you change in the wrong way, because you added things that i didn't use in the code, maybe those things are not implemented in the right way, so What field are you trying to change? What do you want to achieve with that ?

On Fri, Jul 2, 2021, 09:53 Danh @.> wrote: Why are you trying to get and set list from diffutil in you click listen ? I won't work because, he first go to another screen and than he don't get t And set the values, from diffutil, so you need to get and set in different places! The questions is what do you want to do? Get or set values from diffutil ? Your current list you need to call it inside your adapter class ... … <#m_-5253587529778850751_> On Fri, Jul 2, 2021, 06:26 Danh @.> wrote:

[image: image] https://user-images.githubusercontent.com/48312687/124216124-ad20a900-db1f-11eb-9ef0-14a91fedacc5.png I tried demo update item[0], but Diffutil not working — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#1 (comment) <#1 (comment)>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQJDWZBUDZZ7M5FEV3AVXTDTVUWWTANCNFSM47V4KVQQ . I'm just trying to make you understand "Diffutil not working when change a field". I tested on your source code Note App. — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#1 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQJDWZEBVIQOFABUPTBNXT3TVVO7HANCNFSM47V4KVQQ .

It's just an example: I want to change the title at position 0, without navigate UpdateNoteFragment.kt.