修改设置图片后背景图片数据丢失问题。

This commit is contained in:
2025-12-03 19:31:58 +08:00
parent 4a31b9eef0
commit ca1850fe8a
3 changed files with 4 additions and 3 deletions

View File

@@ -1,8 +1,8 @@
#Created by .winboll/winboll_app_build.gradle
#Wed Dec 03 10:59:39 GMT 2025
#Wed Dec 03 11:30:35 GMT 2025
stageCount=13
libraryProject=
baseVersion=15.11
publishVersion=15.11.12
buildCount=129
buildCount=131
baseBetaVersion=15.11.13

View File

@@ -322,6 +322,7 @@ public class MainViewFragment extends Fragment {
public void reloadBackground() {
BackgroundSourceUtils utils = BackgroundSourceUtils.getInstance(getActivity());
mBgSourceUtils.loadSettings();
BackgroundBean bean = utils.getCurrentBackgroundBean();
mBackgroundView.loadBackground(bean);
}

View File

@@ -314,7 +314,7 @@ public class BackgroundSourceUtils {
/**
* 加载背景图片配置数据核心确保current/preview是两份独立的BackgroundBean实例
*/
void loadSettings() {
public void loadSettings() {
// 1. 加载正式Bean独立实例从currentBackgroundBean.json加载不存在则新建
currentBackgroundBean = BackgroundBean.loadBeanFromFile(currentBackgroundBeanFile.getAbsolutePath(), BackgroundBean.class);
if (currentBackgroundBean == null) {