resolved conflict for merge from d42eeab2 to master

Change-Id: I41bd238f0628110c923b79259de4cd11a783340c
This commit is contained in:
Michael Kolb
2014-04-17 18:00:40 -07:00
4 changed files with 18 additions and 1 deletions

View File

@@ -1173,7 +1173,15 @@ public final class ViewRootImpl implements ViewParent,
void dispatchApplyInsets(View host) { void dispatchApplyInsets(View host) {
mFitSystemWindowsInsets.set(mAttachInfo.mContentInsets); mFitSystemWindowsInsets.set(mAttachInfo.mContentInsets);
host.dispatchApplyWindowInsets(new WindowInsets(mFitSystemWindowsInsets)); boolean isRound = false;
if ((mWindowAttributes.flags & WindowManager.LayoutParams.FLAG_LAYOUT_IN_OVERSCAN) != 0
&& mDisplay.getDisplayId() == 0) {
// we're fullscreen and not hosted in an ActivityView
isRound = mContext.getResources().getBoolean(
com.android.internal.R.bool.config_windowIsRound);
}
host.dispatchApplyWindowInsets(new WindowInsets(
mFitSystemWindowsInsets, isRound));
} }
private void performTraversals() { private void performTraversals() {

View File

@@ -50,6 +50,11 @@ public class WindowInsets {
this(systemWindowInsets, windowDecorInsets, false); this(systemWindowInsets, windowDecorInsets, false);
} }
/** @hide */
public WindowInsets(Rect systemWindowInsets, boolean isRound) {
this(systemWindowInsets, EMPTY_RECT, isRound);
}
/** @hide */ /** @hide */
public WindowInsets(Rect systemWindowInsets, Rect windowDecorInsets, boolean isRound) { public WindowInsets(Rect systemWindowInsets, Rect windowDecorInsets, boolean isRound) {
mSystemWindowInsets = systemWindowInsets; mSystemWindowInsets = systemWindowInsets;

View File

@@ -1429,4 +1429,7 @@
2 - The device DOES NOT have a permanent menu key; ignore autodetection. --> 2 - The device DOES NOT have a permanent menu key; ignore autodetection. -->
<integer name="config_overrideHasPermanentMenuKey">0</integer> <integer name="config_overrideHasPermanentMenuKey">0</integer>
<!-- default window inset isRound property -->
<bool name="config_windowIsRound">false</bool>
</resources> </resources>

View File

@@ -291,6 +291,7 @@
<java-symbol type="bool" name="config_wifi_batched_scan_supported" /> <java-symbol type="bool" name="config_wifi_batched_scan_supported" />
<java-symbol type="bool" name="config_enableMultiUserUI"/> <java-symbol type="bool" name="config_enableMultiUserUI"/>
<java-symbol type="bool" name="config_disableUsbPermissionDialogs"/> <java-symbol type="bool" name="config_disableUsbPermissionDialogs"/>
<java-symbol type="bool" name="config_windowIsRound" />
<java-symbol type="integer" name="config_cursorWindowSize" /> <java-symbol type="integer" name="config_cursorWindowSize" />
<java-symbol type="integer" name="config_extraFreeKbytesAdjust" /> <java-symbol type="integer" name="config_extraFreeKbytesAdjust" />