summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/Workspace.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2016-07-07 07:34:38 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2016-07-07 07:34:38 +0000
commit27731e4d7def4aaea2dfcc1f132ad7a54dceab33 (patch)
tree811aef0b9230449fe362c07ce1192921fd527001 /src/com/android/launcher3/Workspace.java
parent968eeebadcb717dbcd1778728cd5091c7108aade (diff)
parentd8d19938e41a5aa5d14da390f3beae154692bc46 (diff)
downloadandroid_packages_apps_Trebuchet-27731e4d7def4aaea2dfcc1f132ad7a54dceab33.tar.gz
android_packages_apps_Trebuchet-27731e4d7def4aaea2dfcc1f132ad7a54dceab33.tar.bz2
android_packages_apps_Trebuchet-27731e4d7def4aaea2dfcc1f132ad7a54dceab33.zip
Merge "Fixing accessibility drag and drop Since the page's accessibility flag is updated when entering drag mode, it does not need to be updated on state change" into ub-launcher3-calgary
Diffstat (limited to 'src/com/android/launcher3/Workspace.java')
-rw-r--r--src/com/android/launcher3/Workspace.java27
1 files changed, 15 insertions, 12 deletions
diff --git a/src/com/android/launcher3/Workspace.java b/src/com/android/launcher3/Workspace.java
index 5f0f9f5d8..f71aaef03 100644
--- a/src/com/android/launcher3/Workspace.java
+++ b/src/com/android/launcher3/Workspace.java
@@ -2088,19 +2088,22 @@ public class Workspace extends PagedView
}
public void updateAccessibilityFlags() {
- if (Utilities.ATLEAST_LOLLIPOP) {
- int total = getPageCount();
- for (int i = numCustomPages(); i < total; i++) {
- updateAccessibilityFlags((CellLayout) getPageAt(i), i);
- }
- setImportantForAccessibility((mState == State.NORMAL || mState == State.OVERVIEW)
- ? IMPORTANT_FOR_ACCESSIBILITY_AUTO
- : IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS);
- } else {
- int accessible = mState == State.NORMAL ?
- IMPORTANT_FOR_ACCESSIBILITY_AUTO :
+ // TODO: Update the accessibility flags appropriately when dragging.
+ if (!mLauncher.getAccessibilityDelegate().isInAccessibleDrag()) {
+ if (Utilities.ATLEAST_LOLLIPOP) {
+ int total = getPageCount();
+ for (int i = numCustomPages(); i < total; i++) {
+ updateAccessibilityFlags((CellLayout) getPageAt(i), i);
+ }
+ setImportantForAccessibility((mState == State.NORMAL || mState == State.OVERVIEW)
+ ? IMPORTANT_FOR_ACCESSIBILITY_AUTO
+ : IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS);
+ } else {
+ int accessible = mState == State.NORMAL ?
+ IMPORTANT_FOR_ACCESSIBILITY_AUTO :
IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS;
- setImportantForAccessibility(accessible);
+ setImportantForAccessibility(accessible);
+ }
}
}