From 0fd4c656d0dbaf01eb845b8c64f6b27d5141f8b6 Mon Sep 17 00:00:00 2001 From: Yevgen Pronenko Date: Fri, 14 Mar 2014 11:57:06 +0100 Subject: Do not show Home behind full screen activity When ensureActivitiesVisibleLocked goes through foreground activity stack and reaches non-fullscreen activity, it sets showHomeBehindStack variable to true. If there is a fullscreen activity behind, showHomeBehindStack remains unchanged, which causes Home application to be displayed anyway. In this case user will see a fullscreen activity and Home activity simultaneously. To fix the issue we set showHomeBehindStack to false when we reach fullscreen activity in the activity stack. This was made visible by the following commit: 446ef1de8d373c1b017df8d19ebf9a47811fb402 Change-Id: I535c1283a4e26f5cf606375b837d4b7195324af0 --- services/java/com/android/server/am/ActivityStack.java | 1 + 1 file changed, 1 insertion(+) diff --git a/services/java/com/android/server/am/ActivityStack.java b/services/java/com/android/server/am/ActivityStack.java index d651a62..b42bce2 100755 --- a/services/java/com/android/server/am/ActivityStack.java +++ b/services/java/com/android/server/am/ActivityStack.java @@ -1142,6 +1142,7 @@ final class ActivityStack { // At this point, nothing else needs to be shown if (DEBUG_VISBILITY) Slog.v(TAG, "Fullscreen: at " + r); behindFullscreen = true; + showHomeBehindStack = false; } else if (isActivityOverHome(r)) { if (DEBUG_VISBILITY) Slog.v(TAG, "Showing home: at " + r); showHomeBehindStack = true; -- cgit v1.1