|
@@ -110,7 +110,6 @@ class StoreBuyDialog : BaseXDFragment<DialogStoreDetailBinding>(){
|
|
|
return@let
|
|
|
}
|
|
|
storeVm.buyProduct(it.id)
|
|
|
- buySuccessFun?.invoke()
|
|
|
dismissAllowingStateLoss()
|
|
|
}
|
|
|
|
|
@@ -119,5 +118,12 @@ class StoreBuyDialog : BaseXDFragment<DialogStoreDetailBinding>(){
|
|
|
binding.svgContent.setOnClickListener {
|
|
|
dismissAllowingStateLoss()
|
|
|
}
|
|
|
+
|
|
|
+ storeVm.buyProductSuccess.observe(this){
|
|
|
+ if (it){
|
|
|
+ buySuccessFun?.invoke()
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
}
|