fixed dialog fragment crash

This commit is contained in:
Mariotaku Lee 2017-09-05 00:35:09 +08:00
parent e238a0ae5c
commit 379ddbc1cc
No known key found for this signature in database
GPG Key ID: 15C10F89D7C33535
2 changed files with 4 additions and 4 deletions

View File

@ -64,8 +64,8 @@ open class BaseDialogFragment : DialogFragment() {
lateinit var requestManager: RequestManager
private set
override fun onActivityCreated(savedInstanceState: Bundle?) {
super.onActivityCreated(savedInstanceState)
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
requestManager = Glide.with(this)
}

View File

@ -100,8 +100,8 @@ open class BaseFragment : Fragment(), IBaseFragment<BaseFragment> {
private val actionHelper = IBaseFragment.ActionHelper<BaseFragment>()
override fun onActivityCreated(savedInstanceState: Bundle?) {
super.onActivityCreated(savedInstanceState)
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
requestManager = Glide.with(this)
}