summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/Launcher.java
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2013-04-16 17:15:33 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-04-16 17:15:34 +0000
commit5a0300783cef1216f5d13dcbe98ef44f8cc78fc7 (patch)
treed0c9b1b4578b851b0649db61330bb79e98594cdc /src/com/android/launcher2/Launcher.java
parent7972194528cde392ce2b42779a6d5c2d77e86993 (diff)
parent83ca480941b3dd635b62347008fc8d7859d82002 (diff)
downloadandroid_packages_apps_Trebuchet-5a0300783cef1216f5d13dcbe98ef44f8cc78fc7.tar.gz
android_packages_apps_Trebuchet-5a0300783cef1216f5d13dcbe98ef44f8cc78fc7.tar.bz2
android_packages_apps_Trebuchet-5a0300783cef1216f5d13dcbe98ef44f8cc78fc7.zip
Merge "Fixing issue where accessibility was reporting items behind an open folder. (Bug 8331717)" into jb-mr2-dev
Diffstat (limited to 'src/com/android/launcher2/Launcher.java')
-rw-r--r--src/com/android/launcher2/Launcher.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java
index 9f97442a2..b20e3a573 100644
--- a/src/com/android/launcher2/Launcher.java
+++ b/src/com/android/launcher2/Launcher.java
@@ -2287,6 +2287,11 @@ public final class Launcher extends Activity
}
folder.animateOpen();
growAndFadeOutFolderIcon(folderIcon);
+
+ // Notify the accessibility manager that this folder "window" has appeared and occluded
+ // the workspace items
+ folder.sendAccessibilityEvent(AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED);
+ getDragLayer().sendAccessibilityEvent(AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED);
}
public void closeFolder() {
@@ -2311,6 +2316,10 @@ public final class Launcher extends Activity
shrinkAndFadeInFolderIcon(fi);
}
folder.animateClosed();
+
+ // Notify the accessibility manager that this folder "window" has disappeard and no
+ // longer occludeds the workspace items
+ getDragLayer().sendAccessibilityEvent(AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED);
}
public boolean onLongClick(View v) {