mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 02:38:20 +00:00
Add OnComputeInsetsListener to TaskbarContainerView
Instead of updating visibility of TaskbarContainerView, keep it VISIBLE but with alpha 0, and update touchableInsets to allow touches to pass through. This avoids sending insets changed when Taskbar is hidden. Test: Swipe to Overview, no jumping/jank due to insets change; also tap where Taskbar would be and ensure it doesn't launch Bug: 171917176 Change-Id: I9ccb4335e0301f34eec459657f3bbaf88b0d8a52
This commit is contained in:
@@ -38,7 +38,6 @@ import com.android.launcher3.BaseQuickstepLauncher;
|
||||
import com.android.launcher3.LauncherState;
|
||||
import com.android.launcher3.QuickstepAppTransitionManagerImpl;
|
||||
import com.android.launcher3.R;
|
||||
import com.android.launcher3.anim.AlphaUpdateListener;
|
||||
import com.android.launcher3.anim.PendingAnimation;
|
||||
import com.android.launcher3.model.data.ItemInfo;
|
||||
import com.android.launcher3.states.StateAnimationConfig;
|
||||
@@ -107,7 +106,6 @@ public class TaskbarController {
|
||||
@Override
|
||||
public void updateTaskbarVisibilityAlpha(float alpha) {
|
||||
mTaskbarContainerView.setAlpha(alpha);
|
||||
AlphaUpdateListener.updateVisibility(mTaskbarContainerView);
|
||||
}
|
||||
};
|
||||
}
|
||||
@@ -167,6 +165,7 @@ public class TaskbarController {
|
||||
public void init() {
|
||||
mTaskbarView.init(mHotseatController.getNumHotseatIcons(),
|
||||
mRecentsController.getNumRecentIcons());
|
||||
mTaskbarContainerView.init(mTaskbarView);
|
||||
addToWindowManager();
|
||||
mTaskbarStateHandler.setTaskbarCallbacks(createTaskbarStateHandlerCallbacks());
|
||||
mTaskbarVisibilityController.init();
|
||||
@@ -188,6 +187,7 @@ public class TaskbarController {
|
||||
*/
|
||||
public void cleanup() {
|
||||
mTaskbarView.cleanup();
|
||||
mTaskbarContainerView.cleanup();
|
||||
removeFromWindowManager();
|
||||
mTaskbarStateHandler.setTaskbarCallbacks(null);
|
||||
mTaskbarVisibilityController.cleanup();
|
||||
|
||||
Reference in New Issue
Block a user