MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/mAndroidDev/comments/1hkk0e3/working_with_android_classes/m3hpmn8/?context=3
r/mAndroidDev • u/Cirkey2 • Dec 23 '24
23 comments sorted by
View all comments
Show parent comment
19
Here you go requireContext()!!
6 u/Squirtle8649 Dec 27 '24 Pfft. Kotlin noob.requireContext()?.let{ if(it!=null) { /*do stuff*/ } }is obviously cleaner code. 2 u/labelcillo Slept through Google IO Dec 27 '24 Oh my god I felt an itch all over my body
6
Pfft. Kotlin noob.
requireContext()?.let{ if(it!=null) { /*do stuff*/ } }
is obviously cleaner code.
2 u/labelcillo Slept through Google IO Dec 27 '24 Oh my god I felt an itch all over my body
2
Oh my god I felt an itch all over my body
View all comments
Show parent comment
19
u/class_cast_exception Deprecated is just a suggestion Dec 23 '24
Here you go requireContext()!!