diff options
author | Dianne Hackborn <hackbod@google.com> | 2011-01-26 19:04:15 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-01-26 19:04:15 -0800 |
commit | 2dc9c784b2fab67a8233318f559e65f444bf0c97 (patch) | |
tree | 4463638fdc2b29e05817ff72079545b6db972012 /policy | |
parent | ede54ce2fe3252d4ab56b90de464b35a6920970d (diff) | |
parent | 63042d6a0347017fcc4cd98560ca3407044c165c (diff) | |
download | frameworks_base-2dc9c784b2fab67a8233318f559e65f444bf0c97.zip frameworks_base-2dc9c784b2fab67a8233318f559e65f444bf0c97.tar.gz frameworks_base-2dc9c784b2fab67a8233318f559e65f444bf0c97.tar.bz2 |
Merge "Fix issue #3382992: IME close animation stutters from URL bar" into honeycomb
Diffstat (limited to 'policy')
-rw-r--r-- | policy/src/com/android/internal/policy/impl/PhoneWindow.java | 16 |
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 88f30ed..8afb53e 100644 --- a/policy/src/com/android/internal/policy/impl/PhoneWindow.java +++ b/policy/src/com/android/internal/policy/impl/PhoneWindow.java @@ -2026,6 +2026,14 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { } } + @Override + public void setBackgroundDrawable(Drawable d) { + super.setBackgroundDrawable(d); + if (getWindowToken() != null) { + updateWindowResizeState(); + } + } + public void setWindowFrame(Drawable drawable) { if (getForeground() != drawable) { setForeground(drawable); @@ -2126,10 +2134,18 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { } } + void updateWindowResizeState() { + Drawable bg = getBackground(); + hackTurnOffWindowResizeAnim(bg == null || bg.getOpacity() + != PixelFormat.OPAQUE); + } + @Override protected void onAttachedToWindow() { super.onAttachedToWindow(); + updateWindowResizeState(); + final Callback cb = getCallback(); if (cb != null && mFeatureId < 0) { cb.onAttachedToWindow(); |