mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 17:36:49 +00:00
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:
@@ -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