vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/ImageWallpaper.java
@@ -246,6 +246,11 @@ public class ImageWallpaper extends WallpaperService {
Log.d(TAG, "onSurfaceRedrawNeeded");
}
super.onSurfaceRedrawNeeded(holder);
+ if (mBackground == null) {
+ updateBitmap(mWallpaperManager.getBitmap(true /* hardware */));
+ }
mSurfaceRedrawNeeded = true;
drawFrame();
}
本文深入解析了ImageWallpaper类的源码,探讨了其在Android系统UI中如何实现壁纸服务,特别是在surface重绘需求处理及背景更新机制上的具体实现细节。
2735

被折叠的 条评论
为什么被折叠?



