Find Fragment.onAttach(Activity) overrides

Proprietary

The onAttach(Activity) overload was deprecated in API 23 — use onAttach(Context) instead. The Context parameter is the activity for activity-hosted fragments and the application context for headless cases, and works on devices where the parent is not an activity.

org.openrewrite.kotlin.android.FindFragmentOnAttachActivity$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.android.FindFragmentOnAttachActivity$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.