mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-15 07:28:30 +00:00
Fix potential crash in username share sheet.
This commit is contained in:
committed by
Cody Henthorne
parent
075df8a26d
commit
8db113a19b
@@ -38,6 +38,10 @@ class UsernameShareBottomSheet : DSLSettingsBottomSheetFragment() {
|
||||
ShareButton.register(adapter)
|
||||
|
||||
lifecycleDisposable += Recipient.observable(Recipient.self().id).subscribe {
|
||||
if (context == null) {
|
||||
return@subscribe
|
||||
}
|
||||
|
||||
adapter.submitList(getConfiguration(it).toMappingModelList())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user