diff --git a/BasicSample/app/src/main/java/com/example/android/databinding/basicsample/data/ProfileObservableViewModel.kt b/BasicSample/app/src/main/java/com/example/android/databinding/basicsample/data/ProfileObservableViewModel.kt index 6b9d0e1..35dcbc7 100644 --- a/BasicSample/app/src/main/java/com/example/android/databinding/basicsample/data/ProfileObservableViewModel.kt +++ b/BasicSample/app/src/main/java/com/example/android/databinding/basicsample/data/ProfileObservableViewModel.kt @@ -32,8 +32,8 @@ import com.example.android.databinding.basicsample.util.ObservableViewModel * changes to any of the exposed observables automatically refresh the UI. * */ class ProfileLiveDataViewModel : ViewModel() { - private val _name = MutableLiveData("Ada") - private val _lastName = MutableLiveData("Lovelace") + private val _name = MutableLiveData("Yamashita") + private val _lastName = MutableLiveData("Hiroyuki") private val _likes = MutableLiveData(0) val name: LiveData = _name @@ -61,8 +61,8 @@ class ProfileLiveDataViewModel : ViewModel() { * `notifyPropertyChanged` when any of the dependent properties change (`likes` in this case). */ class ProfileObservableViewModel : ObservableViewModel() { - val name = ObservableField("Ada") - val lastName = ObservableField("Lovelace") + val name = ObservableField("Yamashita") + val lastName = ObservableField("Hiroyuki") val likes = ObservableInt(0) fun onLike() { diff --git a/BasicSample/app/src/main/java/com/example/android/databinding/basicsample/ui/ObservableFieldActivity.kt b/BasicSample/app/src/main/java/com/example/android/databinding/basicsample/ui/ObservableFieldActivity.kt index 96d6a02..5176967 100644 --- a/BasicSample/app/src/main/java/com/example/android/databinding/basicsample/ui/ObservableFieldActivity.kt +++ b/BasicSample/app/src/main/java/com/example/android/databinding/basicsample/ui/ObservableFieldActivity.kt @@ -31,7 +31,7 @@ import com.example.android.databinding.basicsample.databinding.ObservableFieldPr */ class ObservableFieldActivity : AppCompatActivity() { - private val observableFieldProfile = ObservableFieldProfile("Ada", "Lovelace", ObservableInt(0)) + private val observableFieldProfile = ObservableFieldProfile("Yamashita", "Hiroyuki", ObservableInt(0)) override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState)