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