mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-26 11:51:10 +01:00
Fix possible crash where tooltip is dismissed after fragment is detached.
This commit is contained in:
committed by
Greyson Parrelli
parent
1006af7d8a
commit
ba3dd79d4e
@@ -60,7 +60,10 @@ class StoryTextLoader(
|
|||||||
contentView.layout(0, 0, contentView.measuredWidth, contentView.measuredHeight)
|
contentView.layout(0, 0, contentView.measuredWidth, contentView.measuredHeight)
|
||||||
|
|
||||||
fragment.displayInDialogAboveAnchor(view, contentView, windowDim = 0f, onDismiss = {
|
fragment.displayInDialogAboveAnchor(view, contentView, windowDim = 0f, onDismiss = {
|
||||||
callback.setIsDisplayingLinkPreviewTooltip(false)
|
val activity = fragment.activity
|
||||||
|
if (activity != null) {
|
||||||
|
callback.setIsDisplayingLinkPreviewTooltip(false)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user