diff options
author | Dianne Hackborn <hackbod@google.com> | 2011-01-26 18:56:29 -0800 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2011-01-26 18:56:29 -0800 |
commit | 63042d6a0347017fcc4cd98560ca3407044c165c (patch) | |
tree | c0aee1ef1c40052795f0fd17dc3b3196cc3ace3e /policy | |
parent | 66a9f48bbf9c2dfc25c1e520fcc05e3d5c2abe84 (diff) | |
download | frameworks_base-63042d6a0347017fcc4cd98560ca3407044c165c.zip frameworks_base-63042d6a0347017fcc4cd98560ca3407044c165c.tar.gz frameworks_base-63042d6a0347017fcc4cd98560ca3407044c165c.tar.bz2 |
Fix issue #3382992: IME close animation stutters from URL bar
Gross hack is grosser.
Change-Id: I0a34bf1d7c16c547402318f24776a5f7e8b7552b
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(); |