From b4e048bf74f3d75359c85b9e01ec603e9977c96f Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Tue, 25 Oct 2022 11:24:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E9=9C=80=E6=B1=82=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E7=BE=8E=E9=A2=9CUI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yunbao/faceunity/adapters/vh/BeautyShapeViewHolder.java | 5 +++-- .../yunbao/faceunity/adapters/vh/BeautySkinViewHolder.java | 5 +++-- config.gradle | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/FaceUnity/src/main/java/com/yunbao/faceunity/adapters/vh/BeautyShapeViewHolder.java b/FaceUnity/src/main/java/com/yunbao/faceunity/adapters/vh/BeautyShapeViewHolder.java index f415b93bf..b4e4aacc8 100644 --- a/FaceUnity/src/main/java/com/yunbao/faceunity/adapters/vh/BeautyShapeViewHolder.java +++ b/FaceUnity/src/main/java/com/yunbao/faceunity/adapters/vh/BeautyShapeViewHolder.java @@ -37,7 +37,8 @@ public class BeautyShapeViewHolder extends BaseViewHolder { super.onProgressChanged(seekBar, value, fromUser); FaceBeautyBean bean = (FaceBeautyBean) itemView.getTag(); double toValue = SeekBarUtils.Companion.seekToValue(bean.getModelAttributeData().getMaxRange(), value, seekBar.getMin()); - BeautyShapeViewHolder.this.value.setText(String.format("%.1f", toValue)); + BeautyShapeViewHolder.this.value.setTag(String.format("%.1f", toValue)); + BeautyShapeViewHolder.this.value.setText(value+""); adapter.getFaceBeautyDataFactory().updateParamIntensity(bean.getKey(), toValue); saveData(); } @@ -80,7 +81,7 @@ public class BeautyShapeViewHolder extends BaseViewHolder { @Override public void saveData() { FaceBeautyBean bean = (FaceBeautyBean) itemView.getTag(); - adapter.save(getName(this)+bean.getKey(), (String) value.getText()); + adapter.save(getName(this)+bean.getKey(), (String) value.getTag()); } @Override diff --git a/FaceUnity/src/main/java/com/yunbao/faceunity/adapters/vh/BeautySkinViewHolder.java b/FaceUnity/src/main/java/com/yunbao/faceunity/adapters/vh/BeautySkinViewHolder.java index 899640402..c530f55e1 100644 --- a/FaceUnity/src/main/java/com/yunbao/faceunity/adapters/vh/BeautySkinViewHolder.java +++ b/FaceUnity/src/main/java/com/yunbao/faceunity/adapters/vh/BeautySkinViewHolder.java @@ -36,7 +36,8 @@ public class BeautySkinViewHolder extends BaseViewHolder{ super.onProgressChanged(seekBar, value, fromUser); FaceBeautyBean bean = (FaceBeautyBean) itemView.getTag(); double toValue = SeekBarUtils.Companion.seekToValue(bean.getModelAttributeData().getMaxRange(), value, seekBar.getMin()); - BeautySkinViewHolder.this.value.setText(String.format("%.1f",toValue)); + BeautySkinViewHolder.this.value.setTag(String.format("%.1f",toValue)); + BeautySkinViewHolder.this.value.setText(value+""); adapter.getFaceBeautyDataFactory().updateParamIntensity(bean.getKey(),toValue); saveData(); } @@ -80,7 +81,7 @@ public class BeautySkinViewHolder extends BaseViewHolder{ @Override public void saveData() { String key = ((FaceBeautyBean)itemView.getTag()).getKey(); - String val= (String) value.getText(); + String val= (String) value.getTag(); adapter.save(getName(this)+key,val); } diff --git a/config.gradle b/config.gradle index 9fe772767..5c8226cca 100644 --- a/config.gradle +++ b/config.gradle @@ -27,6 +27,6 @@ ext { // true表示谷歌支付 false isGooglePlay : false, //是否上报异常日志 - isUploadLog : false + isUploadLog : true ] } \ No newline at end of file