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