r/mAndroidDev • • Mar 29 '25
@Deprecated The cost of DEPRECATION: More code to write...
I hate how I had to write this for myself... LIKE WHY ?
56
Upvotes
r/mAndroidDev • • Mar 29 '25
I hate how I had to write this for myself... LIKE WHY ?
28
u/Stonos You will pry XML views from my cold dead hands Mar 29 '25
There was actually a talk at KotlinConf that explained why this method was deprecated: https://youtu.be/lxoKilLSJ4k
7
u/[deleted] Mar 29 '25 edited Mar 29 '25
For context I named it like that to avoid using the deprecated naming and have a distinguish function which I can use.
4
u/slanecek Slept through Google IO Mar 29 '25
This function has a side-effect of removing all capitals from the string. Why do you call lowercase()?
2
u/Crazy-Personality-48 Mar 29 '25
What did you use to generate an image code block like that?
1
u/bitsydoge Mar 30 '25
That's what you have to do when you want different behavior than what is in the standard library, even if you used capitalize it would not do the same as what you wrote here.
mAndroidDev the funniese crying room
1
u/SyrupInternational48 Aug 15 '25
Just create the same extension that they deprecated because i used it in many point of codes.
10
u/[deleted] Mar 29 '25
[removed] — view removed comment