igoticecream
05/18/2017, 11:49 PMaris
05/19/2017, 7:04 AMdeviant
05/19/2017, 8:20 AMViewModel
. Of course we can use AndroidViewModel
which receives Application
as a constructor param. But in this case we expose android implementation and can't easily test our ViewModel
with unit tests (without mocking the app)quiro
05/19/2017, 8:23 AMViewModel
deviant
05/19/2017, 8:35 AMObservableField
everywhere 🙂
btw i hope they will add some delegated properties support for ObservableField
, so we can use fields as
textLabel = "hello world"
instead of
textLabel.set("hello world")
aidanvii
05/19/2017, 8:37 AMebnrdwan
05/19/2017, 12:17 PMchansek
05/19/2017, 12:24 PMchansek
05/19/2017, 12:25 PMinv3rse
05/19/2017, 2:11 PMcodeslubber
05/19/2017, 3:52 PMyousuf.haque
05/19/2017, 3:55 PMleodeleon
05/19/2017, 4:59 PMr-z
05/19/2017, 6:11 PMabanoub.wagdy91
05/19/2017, 8:04 PMSlackbot
05/19/2017, 8:06 PMd.medina
05/19/2017, 8:15 PMfabianterhorst
05/19/2017, 10:06 PMzak.taccardi
05/20/2017, 4:50 AMhasen
05/20/2017, 8:47 AMobject: OnObbStateChangeListener() {
override fun onObbStateChange(path: String?, state: Int) { ... } }
chris.zou
05/20/2017, 9:37 AMkiku
05/20/2017, 9:43 AMfun something(x: List<String>) { x.forEach { ...; return something; }}
, you would be returning from the inner lambdaeddie
05/20/2017, 6:44 PMPaul Woitaschek
05/20/2017, 9:02 PMblakelee
05/21/2017, 3:11 PMwasyl
05/21/2017, 4:45 PMorangy
05/21/2017, 4:47 PMkuyawa
05/22/2017, 1:32 AMSlackbot
05/22/2017, 11:45 AMdiego-gomez-olvera
05/22/2017, 11:50 AMdiego-gomez-olvera
05/22/2017, 11:50 AMkingsley
05/22/2017, 3:31 PMdiego-gomez-olvera
05/22/2017, 3:36 PM@Nullable
). There is a ticket for it. https://youtrack.jetbrains.com/issue/KT-18012kingsley
05/22/2017, 4:07 PM