crash fixes
This commit is contained in:
parent
34ca66b08d
commit
53657c0b51
|
@ -79,8 +79,9 @@ abstract class AbsStatusDialogFragment : BaseDialogFragment() {
|
||||||
adapter.showAccountsColor = true
|
adapter.showAccountsColor = true
|
||||||
|
|
||||||
val dialog = builder.create()
|
val dialog = builder.create()
|
||||||
dialog.onShow { dialog ->
|
dialog.onShow {
|
||||||
dialog.applyTheme()
|
val context = it.context ?: return@onShow
|
||||||
|
it.applyTheme()
|
||||||
|
|
||||||
val am = AccountManager.get(context)
|
val am = AccountManager.get(context)
|
||||||
val details = AccountUtils.getAccountDetails(am, accountKey, true) ?: run {
|
val details = AccountUtils.getAccountDetails(am, accountKey, true) ?: run {
|
||||||
|
@ -88,7 +89,7 @@ abstract class AbsStatusDialogFragment : BaseDialogFragment() {
|
||||||
return@onShow
|
return@onShow
|
||||||
}
|
}
|
||||||
val weakThis = WeakReference(this)
|
val weakThis = WeakReference(this)
|
||||||
val weakHolder = WeakReference(StatusViewHolder(adapter = adapter, itemView = dialog.itemContent).apply {
|
val weakHolder = WeakReference(StatusViewHolder(adapter = adapter, itemView = it.itemContent).apply {
|
||||||
setupViewOptions()
|
setupViewOptions()
|
||||||
})
|
})
|
||||||
val extraStatus = status
|
val extraStatus = status
|
||||||
|
|
Loading…
Reference in New Issue