Accessibility fixes
> Enabling top bar buttons in accessibility drag-drop > Unifying logic to show delete/uninstall/app-info targets > Announcing cell loction as 1-index instead of 0-index Change-Id: Ibc7801f77e938b2646f0655462cbe9b7f781818b
This commit is contained in:
1 parent
ad4ba81384
commit
1a70cef988
10 files changed
+99
-42
No files matched your search
@@ -180,6 +180,9 @@ public class SearchDropTargetBar extends FrameLayout implements DragController.D
|
||||
prepareStartAnimation(mDropTargetBar);
|
||||
mShowDropTargetBarAnim.start();
|
||||
hideSearchBar(true);
|
||||
if (mQSBSearchBar != null) {
|
||||
mQSBSearchBar.setVisibility(View.GONE);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -190,6 +193,9 @@ public class SearchDropTargetBar extends FrameLayout implements DragController.D
|
||||
prepareStartAnimation(mDropTargetBar);
|
||||
mShowDropTargetBarAnim.reverse();
|
||||
showSearchBar(true);
|
||||
if (mQSBSearchBar != null) {
|
||||
mQSBSearchBar.setVisibility(View.VISIBLE);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -228,4 +234,13 @@ public class SearchDropTargetBar extends FrameLayout implements DragController.D
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public void enableAccessibleDrag(boolean enable) {
|
||||
if (mQSBSearchBar != null) {
|
||||
mQSBSearchBar.setVisibility(enable ? View.GONE : View.VISIBLE);
|
||||
}
|
||||
mInfoDropTarget.enableAccessibleDrag(enable);
|
||||
mDeleteDropTarget.enableAccessibleDrag(enable);
|
||||
mUninstallDropTarget.enableAccessibleDrag(enable);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user