android 从横屏到竖屏状态出现黑屏

修改WindowManagerService.java中的performLayoutLockedInner()
在if (!win.mLayoutAttached)
后面添加
代码如下:
if (win.mIsWallpaper)
            {
                gone = win.mViewVisibility == View.GONE
                        || !win.mRelayoutCalled
                        || (atoken != null && atoken.hiddenRequested)
                        || win.mAttachedHidden
                        || win.mExiting || win.mDestroying;
            }

你可能感兴趣的:(android)