mirror of
https://github.com/pezkuwichain/pezkuwi-wallet-android.git
synced 2026-04-21 23:48:00 +00:00
fix: resolve citizenship bottom sheet not opening on button tap
Event(null) was swallowed by EventObserver's ?.let pattern, preventing
the CitizenshipBottomSheet from opening when tapping dashboard buttons.
Changed to Event("") with ifBlank conversion to preserve null referrer
semantics while ensuring the observer callback fires.
This commit is contained in:
+1
-1
@@ -179,7 +179,7 @@ class BalanceListFragment :
|
||||
viewModel.assetViewModeModelFlow.observe { manageAssetsAdapter.setAssetViewModeModel(it) }
|
||||
|
||||
viewModel.openCitizenshipEvent.observeEvent { referrer ->
|
||||
CitizenshipBottomSheet.newInstance(referrer).show(childFragmentManager, "citizenship")
|
||||
CitizenshipBottomSheet.newInstance(referrer.ifBlank { null }).show(childFragmentManager, "citizenship")
|
||||
}
|
||||
|
||||
viewModel.shareReferralEvent.observeEvent { shareText ->
|
||||
|
||||
+1
-1
@@ -414,7 +414,7 @@ class BalanceListViewModel(
|
||||
}
|
||||
|
||||
fun basvuruClicked() = launchUnit {
|
||||
_openCitizenshipEvent.postValue(Event(null))
|
||||
_openCitizenshipEvent.postValue(Event(""))
|
||||
}
|
||||
|
||||
fun shareReferralClicked() = launchUnit {
|
||||
|
||||
Reference in New Issue
Block a user