Merge "Do not use the status bar as the system decor layer if it is not visible." into lmp-mr1-modular-dev
This commit is contained in:
@@ -3508,8 +3508,14 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
|||||||
/** {@inheritDoc} */
|
/** {@inheritDoc} */
|
||||||
@Override
|
@Override
|
||||||
public int getSystemDecorLayerLw() {
|
public int getSystemDecorLayerLw() {
|
||||||
if (mStatusBar != null) return mStatusBar.getSurfaceLayer();
|
if (mStatusBar != null && mStatusBar.isVisibleLw()) {
|
||||||
if (mNavigationBar != null) return mNavigationBar.getSurfaceLayer();
|
return mStatusBar.getSurfaceLayer();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (mNavigationBar != null && mNavigationBar.isVisibleLw()) {
|
||||||
|
return mNavigationBar.getSurfaceLayer();
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user