From 01b02a734d2988c22b00f5df6346ad03d8bf52b6 Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Thu, 12 Jan 2012 14:05:03 -0800 Subject: Fix issue #5823276: home repaints after full-screen app is exited Don't consider a window as a candidate for the top fullscreen window if it is not going to be a candiate for layout. Also don't consider windows a candidate for layout if their app token is hidden. This fixes a transient state where we are preparing to unhide the window but have not done so yet. Change-Id: Ife5299ffa003c1df1a4f787b7a2809cbf614ec16 --- core/java/android/view/WindowManagerPolicy.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'core') diff --git a/core/java/android/view/WindowManagerPolicy.java b/core/java/android/view/WindowManagerPolicy.java index 924cb53..8ab468d 100644 --- a/core/java/android/view/WindowManagerPolicy.java +++ b/core/java/android/view/WindowManagerPolicy.java @@ -298,6 +298,11 @@ public interface WindowManagerPolicy { boolean isDisplayedLw(); /** + * Is this window considered to be gone for purposes of layout? + */ + boolean isGoneForLayoutLw(); + + /** * Returns true if this window has been shown on screen at some time in * the past. Must be called with the window manager lock held. * -- cgit v1.1