* commit '82bdfcfadc17b8467a0e3c50843997e7957a9452': Update docs for Window.setElevation(), apply changes immediately
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -1338,6 +1338,7 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
|
||||
if (mDecor != null) {
|
||||
mDecor.setElevation(elevation);
|
||||
}
|
||||
dispatchWindowAttributesChanged(getAttributes());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user