Show drag handle indictor in 2 zone model

Note this is just the tiny arrow we show in accessibility mode, will
probably need to get some updated visual treatment going forward.

Bug: 143361609
Change-Id: I65975727f101984429aadc35a650826e36d9c9aa
This commit is contained in:
Tony Wickham
2020-03-09 16:31:21 -07:00
parent b365cc4387
commit 79a352169f
2 changed files with 12 additions and 1 deletions
@@ -336,7 +336,7 @@ public class ScrimView<T extends Launcher> extends View implements Insettable, O
}
private void updateDragHandleVisibility(Drawable recycle) {
boolean visible = mLauncher.getDeviceProfile().isVerticalBarLayout() || mAM.isEnabled();
boolean visible = shouldDragHandleBeVisible();
boolean wasVisible = mDragHandle != null;
if (visible != wasVisible) {
if (visible) {
@@ -352,6 +352,10 @@ public class ScrimView<T extends Launcher> extends View implements Insettable, O
}
}
protected boolean shouldDragHandleBeVisible() {
return mLauncher.getDeviceProfile().isVerticalBarLayout() || mAM.isEnabled();
}
@Override
public boolean dispatchHoverEvent(MotionEvent event) {
return mAccessibilityHelper.dispatchHoverEvent(event) || super.dispatchHoverEvent(event);