简化代码使用全局变量
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
#Created by .winboll/winboll_app_build.gradle
|
#Created by .winboll/winboll_app_build.gradle
|
||||||
#Fri Dec 26 10:55:56 GMT 2025
|
#Fri Dec 26 11:59:16 GMT 2025
|
||||||
stageCount=35
|
stageCount=35
|
||||||
libraryProject=
|
libraryProject=
|
||||||
baseVersion=15.14
|
baseVersion=15.14
|
||||||
publishVersion=15.14.34
|
publishVersion=15.14.34
|
||||||
buildCount=19
|
buildCount=20
|
||||||
baseBetaVersion=15.14.35
|
baseBetaVersion=15.14.35
|
||||||
|
|||||||
@@ -156,13 +156,6 @@ public class BackgroundView extends RelativeLayout {
|
|||||||
// 隐藏ImageView防止闪烁
|
// 隐藏ImageView防止闪烁
|
||||||
mIvBackground.setVisibility(View.GONE);
|
mIvBackground.setVisibility(View.GONE);
|
||||||
|
|
||||||
// 初始化配置工具类并保存默认相框尺寸
|
|
||||||
AppConfigUtils appConfigUtils = AppConfigUtils.getInstance(mContext);
|
|
||||||
appConfigUtils.loadAppConfig();
|
|
||||||
LogUtils.d(TAG, String.format("【loadImage】默认相框尺寸 | W=%d | H=%d",
|
|
||||||
appConfigUtils.mAppConfigBean.getDefaultFrameWidth(),
|
|
||||||
appConfigUtils.mAppConfigBean.getDefaultFrameHeight()));
|
|
||||||
|
|
||||||
// 刷新逻辑:重新解码原始品质图片并更新缓存
|
// 刷新逻辑:重新解码原始品质图片并更新缓存
|
||||||
if (isRefresh) {
|
if (isRefresh) {
|
||||||
LogUtils.d(TAG, "【loadImage】执行刷新逻辑:重新解码原始品质图片");
|
LogUtils.d(TAG, "【loadImage】执行刷新逻辑:重新解码原始品质图片");
|
||||||
@@ -174,8 +167,8 @@ public class BackgroundView extends RelativeLayout {
|
|||||||
// 合成纯色背景图片(使用配置文件中默认相框尺寸)
|
// 合成纯色背景图片(使用配置文件中默认相框尺寸)
|
||||||
Bitmap combinedBitmap = ImageUtils.drawBitmapOnSolidBackground(
|
Bitmap combinedBitmap = ImageUtils.drawBitmapOnSolidBackground(
|
||||||
bgColor,
|
bgColor,
|
||||||
appConfigUtils.mAppConfigBean.getDefaultFrameWidth(),
|
App.sAppConfigUtils.mAppConfigBean.getDefaultFrameWidth(),
|
||||||
appConfigUtils.mAppConfigBean.getDefaultFrameHeight(),
|
App.sAppConfigUtils.mAppConfigBean.getDefaultFrameHeight(),
|
||||||
newBitmap
|
newBitmap
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user