codelab-android-databinding icon indicating copy to clipboard operation
codelab-android-databinding copied to clipboard

lifecycleOwner missed

Open ChebEk opened this issue 5 years ago • 1 comments

Hi, Found issue in codelab. Line binding.lifecycleOwner = this missed in PlainOldActivity on step 7 (or earlier)

ChebEk avatar May 05 '19 19:05 ChebEk

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)

mars1120 avatar May 08 '19 17:05 mars1120