PinnedNikola DespotoskiHands on Google KSPExperience with KSP; not a guide how to use KSP with RoomSep 27, 2021Sep 27, 2021
Nikola DespotoskiPass data in the Modifier tree and beyondOne of the reasons why the order of Modifiers is important could be summed by passing data from one modifier node to other nodes right of…Sep 18Sep 18
Nikola DespotoskiMigrate your composed { } modifiersCompose lint checks used in the project raised warning that composed { } implementation is no longer recommended because of performance…Mar 12Mar 12
Nikola DespotoskiCompose CompositionLocalProviderCompositionLocalProvideris useful for sharing objects between composables without passing them as function parameters. Objects are stored…May 18, 2022May 18, 2022
Nikola DespotoskiEliminating backing property type in Kotlin 1.7At one KotlinConf, I don’t quite recall which year it was, overriding backing properties type (eliminating the backing prop completely) was…Apr 4, 20222Apr 4, 20222
Nikola DespotoskiRepeatedly, I made few mistakes while using the new `registerForActivityResult` API, resulting in…``` Fatal Exception: java.lang.IllegalStateException: Fragment MyFragment{e964a6} (573498bb-7d87–4d58–9e84–59223f13f14c) id=0x7f0a00b3} is…Nov 2, 2020Nov 2, 2020
Nikola DespotoskiConsume Activity result directly in the ViewModelMost common implementation of Delegation pattern is when the responsibility of the class is delegated to a real object of a concrete…Mar 31, 2020Mar 31, 2020
Nikola DespotoskiCentralized LiveData with Kotlin 1.2The very first crash I got when started Kotlin was, you may guess, UninitializedPropertyAccessException, because somewhere I used lateinit…Dec 4, 2017Dec 4, 2017
Nikola DespotoskiMake use of Kotlin operator overloading for your RecyclerView.Adapter operationsI always liked and found entertaining messing around with operators in C++, back in the days.Nov 29, 20173Nov 29, 20173
Nikola DespotoskiParameterized ViewModelProvider(s)When I thought I’m the first one to experience hard time injecting parameterized ViewModel into Activity/Fragment, stretched my fingers to…Jul 19, 20172Jul 19, 20172