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