codelab-android-databinding
codelab-android-databinding copied to clipboard
lifecycleOwner missed
Hi,
Found issue in codelab.
Line binding.lifecycleOwner = this
missed in PlainOldActivity on step 7 (or earlier)
I get same problem.
https://codelabs.developers.google.com/codelabs/android-databinding/#6
7. Observing data <= in this step
in PlainOldActivity
-> onCreate need add
binding.lifecycleOwner = this
if lose this line
click "like" button will not change the number of likes ...(always show default value)