mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 08:56:55 +00:00
Merge "Have responsive taskbar UI during swipe up gesture." into tm-qpr-dev
This commit is contained in:
@@ -79,6 +79,7 @@ import com.android.launcher3.model.data.ItemInfo;
|
||||
import com.android.launcher3.model.data.WorkspaceItemInfo;
|
||||
import com.android.launcher3.popup.PopupDataProvider;
|
||||
import com.android.launcher3.taskbar.TaskbarAutohideSuspendController.AutohideSuspendFlag;
|
||||
import com.android.launcher3.taskbar.TaskbarTranslationController.TransitionCallback;
|
||||
import com.android.launcher3.taskbar.allapps.TaskbarAllAppsController;
|
||||
import com.android.launcher3.taskbar.overlay.TaskbarOverlayController;
|
||||
import com.android.launcher3.testing.TestLogging;
|
||||
@@ -224,6 +225,7 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
|
||||
new TaskbarAllAppsController(),
|
||||
new TaskbarInsetsController(this),
|
||||
new VoiceInteractionWindowController(this),
|
||||
new TaskbarTranslationController(this),
|
||||
isDesktopMode
|
||||
? new DesktopTaskbarRecentAppsController(this)
|
||||
: TaskbarRecentAppsController.DEFAULT);
|
||||
@@ -835,6 +837,20 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
|
||||
mControllers.taskbarStashController.updateAndAnimateTransientTaskbar(false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Called to start the taskbar translation spring to its settled translation (0).
|
||||
*/
|
||||
public void startTranslationSpring() {
|
||||
mControllers.taskbarTranslationController.startSpring();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a callback to help monitor the swipe gesture.
|
||||
*/
|
||||
public TransitionCallback getTranslationCallbacks() {
|
||||
return mControllers.taskbarTranslationController.getTransitionCallback();
|
||||
}
|
||||
|
||||
/**
|
||||
* Called when a transient Autohide flag suspend status changes.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user