移除白色启动屏。

This commit is contained in:
2025-12-21 19:12:31 +08:00
parent 2ef09e020e
commit 212b8185c8
2 changed files with 6 additions and 8 deletions

View File

@@ -1,8 +1,8 @@
#Created by .winboll/winboll_app_build.gradle
#Sun Dec 21 17:57:40 HKT 2025
#Sun Dec 21 11:07:38 GMT 2025
stageCount=17
libraryProject=
baseVersion=15.14
publishVersion=15.14.16
buildCount=0
buildCount=2
baseBetaVersion=15.14.17

View File

@@ -149,7 +149,7 @@ public class BackgroundView extends RelativeLayout {
return;
}
mIvBackground.setVisibility(View.GONE);
//mIvBackground.setVisibility(View.GONE);
// ======================== 新增:路径判断逻辑 ========================
// 1. 路径未变化:直接使用缓存
@@ -161,7 +161,6 @@ public class BackgroundView extends RelativeLayout {
mImageAspectRatio = (float) cachedBitmap.getWidth() / cachedBitmap.getHeight();
mIvBackground.setImageBitmap(cachedBitmap);
adjustImageViewSize();
mIvBackground.setVisibility(View.VISIBLE);
return;
} else {
// 缓存Bitmap为空或已回收提示并加载透明背景
@@ -200,7 +199,6 @@ public class BackgroundView extends RelativeLayout {
mIvBackground.setImageDrawable(new BitmapDrawable(mContext.getResources(), bitmap));
adjustImageViewSize();
mIvBackground.setVisibility(View.VISIBLE);
LogUtils.d(TAG, "=== loadImage 完成 ===");
}
@@ -271,7 +269,7 @@ public class BackgroundView extends RelativeLayout {
params.height = ivHeight;
mIvBackground.setLayoutParams(params);
mIvBackground.setScaleType(ScaleType.FIT_CENTER);
mIvBackground.setVisibility(View.VISIBLE);
//mIvBackground.setVisibility(View.VISIBLE);
}
}
@@ -281,14 +279,14 @@ public class BackgroundView extends RelativeLayout {
mImageAspectRatio = 1.0f;
// 清空缓存路径记录
mCurrentCachedPath = "";
mIvBackground.setVisibility(View.GONE);
//mIvBackground.setVisibility(View.GONE);
}
// ====================================== 重写方法 ======================================
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
adjustImageViewSize(); // 尺寸变化时重新调整
//adjustImageViewSize(); // 尺寸变化时重新调整
}
}