alexa

What is the best way to avoid accidental repeated clicks on Any btn in android ?

What is the best way to avoid accidental repeated clicks on Any btn in android ?
 ​fun​ NavController.​safeNavigate​(​direction​:​ ​NavDirections​) {​    
       currentDestination?.getAction(direction.actionId)?.​run​ { navigate(direction) }
​} 

And instead of navController.navigate, use navController.safeNavigate with the same arguments.


271 0
7

Write a Comments


* Be the first to Make Comment

GoodFirms Badge
GoodFirms Badge

Fix Your Meeting With Our SEO Consultants in India To Grow Your Business Online

Facebook
Twitter
LinkedIn
Instagram
Whatsapp
Call Now
Quick Inquiry