Переглянути джерело

闪退问题以及****显示问题

yu.jie 3 роки тому
батько
коміт
89bc7e1600

+ 4 - 6
RMA/app/src/main/java/cn/muchinfo/rma/view/base/hnstmain/HnstMainFragment.kt

@@ -748,13 +748,11 @@ class HnstMainFragment : BaseFragment<HnstMainViewmodel>() {
                                      */
                                     viewModel.usedAccountData.bindOptional(context) {
                                         if (isOpenEye.value == true) {
-                                            if (text.toString().trim() == "****" && it!!.valueOfposition_keep_watch_profit_and_loss!! != 0.0) {
-                                                if (it?.canUserValueOfPosition!!) {
-                                                    text = NumberUtils.roundNum(
-                                                        NumberUtils.doubleDistortion(it?.valueOfposition_keep_watch_profit_and_loss?.toString()),
+                                            if (text.toString().trim() == "****") {
+                                                text = NumberUtils.roundNum(
+                                                    NumberUtils.doubleDistortion(it?.valueOfposition_keep_watch_profit_and_loss?.toString()),
                                                         2
-                                                    )
-                                                }
+                                                )
                                             }
 
                                                 var lastprice: Double? = 0.0