20251127_214905_683 Debugging ...

This commit is contained in:
2025-11-27 21:49:29 +08:00
parent 5aa54091e5
commit 6a2d011ceb
2 changed files with 15 additions and 8 deletions

View File

@@ -1,8 +1,8 @@
#Created by .winboll/winboll_app_build.gradle #Created by .winboll/winboll_app_build.gradle
#Thu Nov 27 13:19:32 GMT 2025 #Thu Nov 27 13:48:13 GMT 2025
stageCount=11 stageCount=11
libraryProject= libraryProject=
baseVersion=15.11 baseVersion=15.11
publishVersion=15.11.10 publishVersion=15.11.10
buildCount=19 buildCount=21
baseBetaVersion=15.11.11 baseBetaVersion=15.11.11

View File

@@ -181,7 +181,8 @@ public class BackgroundPictureActivity extends WinBoLLActivity implements Backgr
boolean isUseBackgroundFile = utils.getBackgroundPictureBean().isUseBackgroundFile(); boolean isUseBackgroundFile = utils.getBackgroundPictureBean().isUseBackgroundFile();
LogUtils.d(TAG, String.format("isUseBackgroundFile is %s, _mSourceCroppedFile.exists() is %s ", isUseBackgroundFile, _mSourceCroppedFile.exists())); LogUtils.d(TAG, String.format("isUseBackgroundFile is %s, _mSourceCroppedFile.exists() is %s ", isUseBackgroundFile, _mSourceCroppedFile.exists()));
if (isUseBackgroundFile && _mSourceCroppedFile.exists()) { //if (isUseBackgroundFile && _mSourceCroppedFile.exists()) {
if (_mSourceCroppedFile.exists()) {
//try { //try {
//String filePath = utils.getBackgroundDir() + getBackgroundFileName(); //String filePath = utils.getBackgroundDir() + getBackgroundFileName();
preViewFilePathBackgroundView = _mSourceCroppedFilePath; preViewFilePathBackgroundView = _mSourceCroppedFilePath;
@@ -217,7 +218,9 @@ public class BackgroundPictureActivity extends WinBoLLActivity implements Backgr
BackgroundPictureBean bean = utils.getBackgroundPictureBean(); BackgroundPictureBean bean = utils.getBackgroundPictureBean();
bean.setIsUseBackgroundFile(false); bean.setIsUseBackgroundFile(false);
utils.saveData(); utils.saveData();
updatePreviewBackground();
preViewFilePathBackgroundView = "";
bvPreviewBackground.previewBackgroundImage(preViewFilePathBackgroundView);
} }
}; };
@@ -440,10 +443,10 @@ public class BackgroundPictureActivity extends WinBoLLActivity implements Backgr
if (success) { if (success) {
//ToastUtils.show("保存成功"); //ToastUtils.show("保存成功");
// 更新数据 // 更新数据
BackgroundPictureUtils utils = BackgroundPictureUtils.getInstance(BackgroundPictureActivity.this); // BackgroundPictureUtils utils = BackgroundPictureUtils.getInstance(BackgroundPictureActivity.this);
BackgroundPictureBean bean = utils.getBackgroundPictureBean(); // BackgroundPictureBean bean = utils.getBackgroundPictureBean();
bean.setIsUseBackgroundFile(true); // bean.setIsUseBackgroundFile(true);
utils.saveData(); // utils.saveData();
updatePreviewBackground(); updatePreviewBackground();
} else { } else {
ToastUtils.show("图片压缩保存失败"); ToastUtils.show("图片压缩保存失败");
@@ -684,6 +687,10 @@ public class BackgroundPictureActivity extends WinBoLLActivity implements Backgr
@Override @Override
public void onNo() { public void onNo() {
isCommitSettings = true; isCommitSettings = true;
BackgroundPictureUtils utils = BackgroundPictureUtils.getInstance(BackgroundPictureActivity.this);
BackgroundPictureBean bean = utils.getBackgroundPictureBean();
bean.setIsUseBackgroundFile(!preViewFilePathBackgroundView.equals(""));
utils.saveData();
finish(); finish();
} }