mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 00:06:47 +00:00
Revert "Revert "Listen for hover events over stashed taskbar.""
This reverts commit c27605099c.
Reason for revert: DroidMonitor-triggered revert due to breakage <https://android-build.googleplex.com/builds/quarterdeck?branch=git_udc-dev&target=cf_x86_64_phone-userdebug&lkgb=10076607&lkbb=10076982&fkbb=10076788>, bug <281093059>
Change-Id: I71e7fd07232c27a004243df0ffb0457fe53fe13b
This commit is contained in:
committed by
Android (Google) Code Review
parent
c27605099c
commit
2482c8dcd4
@@ -928,6 +928,13 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether the taskbar is currently visually stashed.
|
||||
*/
|
||||
public boolean isTaskbarStashed() {
|
||||
return mControllers.taskbarStashController.isStashed();
|
||||
}
|
||||
|
||||
/**
|
||||
* Called when we detect a long press in the nav region before passing the gesture slop.
|
||||
* @return Whether taskbar handled the long press, and thus should cancel the gesture.
|
||||
@@ -972,10 +979,23 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
|
||||
|
||||
/**
|
||||
* Called when we detect a motion down or up/cancel in the nav region while stashed.
|
||||
*
|
||||
* @param animateForward Whether to animate towards the unstashed hint state or back to stashed.
|
||||
*/
|
||||
public void startTaskbarUnstashHint(boolean animateForward) {
|
||||
mControllers.taskbarStashController.startUnstashHint(animateForward);
|
||||
// TODO(b/270395798): Clean up forceUnstash after removing long-press unstashing code.
|
||||
startTaskbarUnstashHint(animateForward, /* forceUnstash = */ false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Called when we detect a motion down or up/cancel in the nav region while stashed.
|
||||
*
|
||||
* @param animateForward Whether to animate towards the unstashed hint state or back to stashed.
|
||||
* @param forceUnstash Whether we force the unstash hint.
|
||||
*/
|
||||
public void startTaskbarUnstashHint(boolean animateForward, boolean forceUnstash) {
|
||||
// TODO(b/270395798): Clean up forceUnstash after removing long-press unstashing code.
|
||||
mControllers.taskbarStashController.startUnstashHint(animateForward, forceUnstash);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1123,4 +1143,9 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
|
||||
public int getTaskbarAllAppsScroll() {
|
||||
return mControllers.taskbarAllAppsController.getTaskbarAllAppsScroll();
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
public float getStashedTaskbarScale() {
|
||||
return mControllers.stashedHandleViewController.getStashedHandleHintScale().value;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user