|
|
@@ -748,13 +748,14 @@ class HnstMainFragment : BaseFragment<HnstMainViewmodel>() {
|
|
|
*/
|
|
|
viewModel.usedAccountData.bindOptional(context) {
|
|
|
if (isOpenEye.value == true) {
|
|
|
-// if (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()),
|
|
|
-// 2
|
|
|
-// )
|
|
|
-// }
|
|
|
+ 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()),
|
|
|
+ 2
|
|
|
+ )
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
var lastprice: Double? = 0.0
|
|
|
|