diff --git a/flap/src/main/java/me/yifeiyuan/flap/Flap.kt b/flap/src/main/java/me/yifeiyuan/flap/Flap.kt index f717df06..2d5e75fa 100644 --- a/flap/src/main/java/me/yifeiyuan/flap/Flap.kt +++ b/flap/src/main/java/me/yifeiyuan/flap/Flap.kt @@ -290,7 +290,7 @@ class Flap : FlapApi { bindingContext = recyclerView.context if (bindingContext is Activity) { - activityContext = bindingContext + activityContext = bindingContext as Activity } //当没设置 lifecycleOwner 尝试获取 context 作为 LifecycleOwner