From 55d225d50e68b3ea629c45a53d6744b52e335134 Mon Sep 17 00:00:00 2001 From: Svetoslav Ganov Date: Tue, 22 May 2012 15:19:14 -0700 Subject: Cling allows touch explore and accessibility focus search behind it. 1. Touch exploration is performed through hover events and the cling has to consume them to prevent touch exploring content behind it to achieve modal window like behavior. 2. Since the cling should behave as a modal window, the accessibility focus search should not returning items behind the cling, so the focus search should use the cling as its root. bug:6538549 Change-Id: I8545b6ae3ac85a363cc371e1a608d55b9abd5de8 --- src/com/android/launcher2/Launcher.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/com/android/launcher2/Launcher.java') diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java index e6c25cbdc..87ca4c7c9 100644 --- a/src/com/android/launcher2/Launcher.java +++ b/src/com/android/launcher2/Launcher.java @@ -3466,6 +3466,7 @@ public final class Launcher extends Activity cling.init(this, positionData); cling.setVisibility(View.VISIBLE); cling.setLayerType(View.LAYER_TYPE_HARDWARE, null); + cling.requestAccessibilityFocus(); if (animate) { cling.buildLayer(); cling.setAlpha(0f); -- cgit v1.2.3