mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-23 11:15:44 +00:00
Prevent crash by ignoring call if view is null.
This commit is contained in:
@@ -204,7 +204,7 @@ class ConversationSettingsFragment : DSLSettingsFragment(
|
||||
|
||||
adapter.submitList(getConfiguration(state).toMappingModelList()) {
|
||||
if (state.isLoaded) {
|
||||
(requireView().parent as? ViewGroup)?.doOnPreDraw {
|
||||
(view?.parent as? ViewGroup)?.doOnPreDraw {
|
||||
callback.onContentWillRender()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user