summaryrefslogtreecommitdiffstats
path: root/services/core/java/com/android/server/wm
diff options
context:
space:
mode:
authorGus Prevas <kprevas@google.com>2015-09-18 14:42:01 -0400
committerGus Prevas <kprevas@google.com>2015-09-18 14:42:01 -0400
commite82f3c977cc52c27178486cd45c43861e86ad050 (patch)
treeefa1afc937f0b6e5304b378e3eaa4335d469b236 /services/core/java/com/android/server/wm
parente3d006b1abce25b9c0163e0471830ad5d01c3670 (diff)
downloadframeworks_base-e82f3c977cc52c27178486cd45c43861e86ad050.zip
frameworks_base-e82f3c977cc52c27178486cd45c43861e86ad050.tar.gz
frameworks_base-e82f3c977cc52c27178486cd45c43861e86ad050.tar.bz2
Allows starting window to be shown for swipe-dismiss windows.
This change removes the hack in WindowManagerService which prevented a starting window from being created for a window with the swipe-to-dismiss flag set. Per the comment in the file, a starting window is not created for translucent windows (which a swipe-to-dismiss window implicitly is) because the translucency of the window interacts poorly with the default entry transition; this does not apply to swipe-to-dismiss windows as they use a different entry transition. Removing this allows us to start the transition before the app has finished drawing its UI (showing the app's theme's default background drawable as suggested in https://spec.googleplex.com/quantum/patterns/launch-screens.html) which makes app launching on Wear much more responsive. Bug: 23066614 Change-Id: I99b85aeb9a9fcce277239b6f430691c3abf86177
Diffstat (limited to 'services/core/java/com/android/server/wm')
-rw-r--r--services/core/java/com/android/server/wm/WindowManagerService.java9
1 files changed, 2 insertions, 7 deletions
diff --git a/services/core/java/com/android/server/wm/WindowManagerService.java b/services/core/java/com/android/server/wm/WindowManagerService.java
index a0499b7..b888a78 100644
--- a/services/core/java/com/android/server/wm/WindowManagerService.java
+++ b/services/core/java/com/android/server/wm/WindowManagerService.java
@@ -4441,13 +4441,8 @@ public class WindowManagerService extends IWindowManager.Stub
+ " ShowWallpaper="
+ ent.array.getBoolean(
com.android.internal.R.styleable.Window_windowShowWallpaper, false));
- final boolean windowIsTranslucentDefined = ent.array.hasValue(
- com.android.internal.R.styleable.Window_windowIsTranslucent);
- final boolean windowIsTranslucent = ent.array.getBoolean(
- com.android.internal.R.styleable.Window_windowIsTranslucent, false);
- final boolean windowSwipeToDismiss = ent.array.getBoolean(
- com.android.internal.R.styleable.Window_windowSwipeToDismiss, false);
- if (windowIsTranslucent || (!windowIsTranslucentDefined && windowSwipeToDismiss)) {
+ if (ent.array.getBoolean(
+ com.android.internal.R.styleable.Window_windowIsTranslucent, false)) {
return;
}
if (ent.array.getBoolean(