Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
qdsfdhvh committed May 28, 2024
1 parent 97fb1af commit 09d1641
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,6 @@ public class AndroidScreenLifecycleOwner private constructor() :
}
}

private tailrec fun Context.getActivity(): Activity? = when (this) {
is Activity -> this
is ContextWrapper -> baseContext.getActivity()
else -> null
}

private tailrec fun Context.getApplication(): Application? = when (this) {
is Application -> this
else -> null
Expand Down

0 comments on commit 09d1641

Please sign in to comment.