Merge "Fix double chin issue, where bottom inset is applied twice." into klp-modular-dev

This commit is contained in:
Filip Gruszczynski
2014-07-28 23:34:59 +00:00
committed by Android (Google) Code Review

View File

@ -2102,8 +2102,7 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
int bottom = (int) mOutsetBottom.getDimension(metrics); int bottom = (int) mOutsetBottom.getDimension(metrics);
WindowInsets newInsets = insets.replaceSystemWindowInsets( WindowInsets newInsets = insets.replaceSystemWindowInsets(
insets.getSystemWindowInsetLeft(), insets.getSystemWindowInsetTop(), insets.getSystemWindowInsetLeft(), insets.getSystemWindowInsetTop(),
insets.getSystemWindowInsetRight(), insets.getSystemWindowInsetRight(), bottom);
insets.getSystemWindowInsetBottom() + bottom);
return super.dispatchApplyWindowInsets(newInsets); return super.dispatchApplyWindowInsets(newInsets);
} else { } else {
return super.dispatchApplyWindowInsets(insets); return super.dispatchApplyWindowInsets(insets);