summaryrefslogtreecommitdiffstats
path: root/policy
diff options
context:
space:
mode:
authorAlan Viverette <alanv@google.com>2014-10-29 14:27:47 -0700
committerAlan Viverette <alanv@google.com>2014-10-29 14:27:47 -0700
commit79c067c54a944660438c81ac2caf37ec68eedfa9 (patch)
tree8ec8959b2bd082efa2bd6c2d1efca5d859a32999 /policy
parent52f811ecda5991a3335b8aca4d98020b7a976a42 (diff)
downloadframeworks_base-79c067c54a944660438c81ac2caf37ec68eedfa9.zip
frameworks_base-79c067c54a944660438c81ac2caf37ec68eedfa9.tar.gz
frameworks_base-79c067c54a944660438c81ac2caf37ec68eedfa9.tar.bz2
Add setters for window elevation and clipToOutline properties
These are available as XML attributes but were lacking setters. None of the Window properties have getters, so just adding setters here. BUG: 16847753 Change-Id: I9c032903e94b7f12125210bd73c911243612df69
Diffstat (limited to 'policy')
-rw-r--r--policy/src/com/android/internal/policy/impl/PhoneWindow.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindow.java b/policy/src/com/android/internal/policy/impl/PhoneWindow.java
index 1ed61fd..4714826 100644
--- a/policy/src/com/android/internal/policy/impl/PhoneWindow.java
+++ b/policy/src/com/android/internal/policy/impl/PhoneWindow.java
@@ -1332,6 +1332,22 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
}
@Override
+ public final void setElevation(float elevation) {
+ mElevation = elevation;
+ if (mDecor != null) {
+ mDecor.setElevation(elevation);
+ }
+ }
+
+ @Override
+ public final void setClipToOutline(boolean clipToOutline) {
+ mClipToOutline = clipToOutline;
+ if (mDecor != null) {
+ mDecor.setClipToOutline(clipToOutline);
+ }
+ }
+
+ @Override
public final void setBackgroundDrawable(Drawable drawable) {
if (drawable != mBackgroundDrawable || mBackgroundResource != 0) {
mBackgroundResource = 0;