Could anyone know, how to fix the deprecated warning or any alternate solution for this.
Handler().postDelayed({ context?.let { //code } }, 30
The deprecated function is that constructor for Handler. Use Handler(Looper.myLooper()) .postDelayed(runnable, delay) instead
Handler(Looper.myLooper()) .postDelayed(runnable, delay)