MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/shittyprogramming/comments/1d63ms2/private_fun_vibrate/l711f9j/?context=3
r/shittyprogramming • u/iLikeVideoGamesAndYT • Jun 02 '24
6 comments sorted by
View all comments
Show parent comment
1
Getting the vibrator before you even need to use it? Two deprecated calls? Build.VERSION_CODES.0 to determine behavior when the comment below explains it better? The odd placement of those comments? The reader's putting in a lot of work here.
vibrator
Build.VERSION_CODES.0
const isAtLeastApi26 = Build.VERSION.SDK_INT >= Build.VERSION_CODES.0
...would be clearer and eliminate two comments.
View all comments
Show parent comment
1
u/mvonballmo Jun 04 '24
Getting the
vibratorbefore you even need to use it? Two deprecated calls?Build.VERSION_CODES.0to determine behavior when the comment below explains it better? The odd placement of those comments? The reader's putting in a lot of work here....would be clearer and eliminate two comments.