yshrsmz
05/28/2019, 9:35 AMMap<ID, Foo>
, or in SQLiteursus
05/28/2019, 3:40 PMamatkivskiy
05/30/2019, 4:11 AMursus
06/01/2019, 5:49 PMursus
06/05/2019, 5:58 AMescodro
06/07/2019, 12:04 AMzokipirlo
06/13/2019, 6:15 AMJan
06/13/2019, 11:58 AMMohamed Ibrahim
06/19/2019, 9:58 AMBehaviorRelays
with viewModel, the problem is in case of the device rotation, ViewModel
subscribe again which cause duplicate subscription with each rotation. I know I could save a subscription with Disposable
and dispose it if it exists, then subscribe .. but is there any other cleaner solution.jonasb
06/27/2019, 12:17 PMby viewModels()
(part of Android KTX) requires a viewmodel factory provider as opposed to a viewmodel factory. I.e. I would prefer to be able to write val vm by viewModels { MyViewModel(arg1, arg2) }
. Is there anything I’m missing where making the viewmodel factory as explicit as it is now is of great benefit?Joan Colmenero
07/04/2019, 9:36 PMJoan Colmenero
07/04/2019, 9:37 PMursus
07/08/2019, 8:39 PMursus
07/09/2019, 6:38 AMtschuchort
07/09/2019, 12:48 PMwoodii
07/11/2019, 1:39 PMursus
07/13/2019, 10:42 PMursus
07/20/2019, 4:33 AMState(val message: List<Message>, ...)
-> ExternalState(val items: List<Item>,...)
Ive Vasiljevic
07/24/2019, 3:30 PMObject
or Class
ursus
07/26/2019, 3:49 AMadapter.items = diff.list
diff.result.dispatchUpdatesTo(adapter)
recyclerView.invalidateItemDecorations()
Which does make the margins correct, however this doesn't get calculated into the animations*, and view jump to some incorrect intial position and animate to their end position*
Has anyone encountered this? Its very annoying. Do I need to write my own ItemAnimator?Pablichjenkov
07/31/2019, 4:17 AMMelih Aksoy
07/31/2019, 1:00 PMkevin.cianfarini
08/03/2019, 4:04 PMDataSource.Factory
already exist as a package? If not, is there somewhere that makes sense to contribute them?Adam Hurwitz
08/06/2019, 6:20 PMnicopasso
08/07/2019, 10:09 AMvoben
08/07/2019, 6:48 PMbutton.setOnClickListener {
if (viewmodel.getMyLiveData().value != null) {
// do something
}
}
Melih Aksoy
08/08/2019, 12:18 PMjermainedilao
08/09/2019, 9:59 AMursus
08/14/2019, 12:23 AMgetChangePayload
)
Say I have a model, the usual case fo areItemsEqual is to use equals(), but what if I dont want to compare all the fields?
So, I could write a reflection util / codegen for this, but it requires to have some sort of a @Exclude annotation on a given field
*which in turn means that our data/domain layer Foo model knows about diff util stuff
so not sure if this is the way to go*
should it maybe be manual code and keep reflection (traversing all the fields) unit test to check if new fields are added) (edited)
-- or, create a UI layer level model from it, and use just the plain equals from it (or not, doesnt matter, since now diffutil annotations make sense)Ive Vasiljevic
08/14/2019, 2:14 PMIve Vasiljevic
08/14/2019, 2:14 PMWill Shelor
08/15/2019, 6:24 PMrkeazor
08/18/2019, 2:33 PM