Update docs for Window.setElevation(), apply changes immediately

BUG: 18983689
Change-Id: I471104092d6296dc0ba2689da96783be088fbce8
This commit is contained in:
Alan Viverette
2015-01-12 16:14:02 -08:00
parent 9a19ed17e1
commit 71922de6c8
2 changed files with 5 additions and 0 deletions

View File

@@ -1087,6 +1087,10 @@ public abstract class Window {
/**
* Sets the window elevation.
* <p>
* Changes to this property take effect immediately and will cause the
* window surface to be recreated. This is an expensive operation and as a
* result, this property should not be animated.
*
* @param elevation The window elevation.
* @see View#setElevation(float)

View File

@@ -1338,6 +1338,7 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
if (mDecor != null) {
mDecor.setElevation(elevation);
}
dispatchWindowAttributesChanged(getAttributes());
}
@Override