Work

FULL_SCREEN 화면에서 StatusBar 나타나는 현상

아로미랑 2012. 4. 3. 18:21

화면 Rotation 후 Layer Resizing 되면서 StatusBar가 Hide되어야 함에도 불구하고 나타나는 현상.

 

원인 분석 중, Native 주석 중 Dianne Hackborn이 쓴 다음 부분이 어떤 의미인지 거론되고 있다.

=======================================================

WindowManagerService.java Line 8586

=======================================================

if (w.mSurface != null) {

                    // XXX NOTE: The logic here could be improved.  We have

                    // the decision about whether to resize a window separated

                    // from whether to hide the surface.  This can cause us to

                    // resize a surface even if we are going to hide it.  You

                    // can see this by (1) holding device in landscape mode on

                    // home screen; (2) tapping browser icon (device will rotate

                    // to landscape; (3) tap home.  The wallpaper will be resized

                    // in step 2 but then immediately hidden, causing us to

                    // have to resize and then redraw it again in step 3.  It

                    // would be nice to figure out how to avoid this, but it is

                    // difficult because we do need to resize surfaces in some

                    // cases while they are hidden such as when first showing a

                    // window.

========================================================