Skip to content

Instantly share code, notes, and snippets.

@robUx4
Created November 12, 2014 09:14
Show Gist options
  • Save robUx4/88bb103b45b2f514ad0e to your computer and use it in GitHub Desktop.
Save robUx4/88bb103b45b2f514ad0e to your computer and use it in GitHub Desktop.
windowDrawsSystemBarBackgrounds WTF
// Non-floating windows on high end devices must put up decor beneath the system bars and
// therefore must know about visibility changes of those.
if (!mIsFloating && ActivityManager.isHighEndGfx()) {
if (!targetPreL && a.getBoolean(
R.styleable.Window_windowDrawsSystemBarBackgrounds,
false)) {
setFlags(FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS,
FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS & ~getForcedWindowFlags());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment