Find Handler.postDelayed(...) calls
ProprietaryHandler.postDelayed(runnable, ms) schedules main-thread work without a story for cancellation — the canonical bug is the activity dying while the runnable is still scheduled, then running with a stale view reference. Use lifecycleScope.launch { delay(ms); … } instead: cancellation is automatic on lifecycle teardown.
org. openrewrite. kotlin. android. FindHandlerPostDelayed$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. android. FindHandlerPostDelayed$KtRecipe'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.