mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 01:46:49 +00:00
Remove dead taskbar code
Test: Works as before Bug: 182512211 Change-Id: Id4c979f2924f9ae6881a9bed18bcc52fbd80c05b
This commit is contained in:
@@ -16,14 +16,12 @@
|
||||
package com.android.launcher3.taskbar;
|
||||
|
||||
import static com.android.launcher3.LauncherState.TASKBAR;
|
||||
import static com.android.launcher3.states.StateAnimationConfig.ANIM_TASKBAR_FADE;
|
||||
import static com.android.launcher3.states.StateAnimationConfig.SKIP_TASKBAR;
|
||||
import static com.android.launcher3.anim.Interpolators.LINEAR;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import com.android.launcher3.BaseQuickstepLauncher;
|
||||
import com.android.launcher3.LauncherState;
|
||||
import com.android.launcher3.anim.Interpolators;
|
||||
import com.android.launcher3.anim.PendingAnimation;
|
||||
import com.android.launcher3.statemanager.StateManager;
|
||||
import com.android.launcher3.states.StateAnimationConfig;
|
||||
@@ -65,13 +63,9 @@ public class TaskbarStateHandler implements StateManager.StateHandler<LauncherSt
|
||||
if (mTaskbarCallbacks == null) {
|
||||
return;
|
||||
}
|
||||
if (config.hasAnimationFlag(SKIP_TASKBAR)) {
|
||||
return;
|
||||
}
|
||||
|
||||
AnimatedFloat alphaTarget = mTaskbarCallbacks.getAlphaTarget();
|
||||
boolean isTaskbarVisible = (toState.getVisibleElements(mLauncher) & TASKBAR) != 0;
|
||||
animation.setFloat(alphaTarget, AnimatedFloat.VALUE, isTaskbarVisible ? 1f : 0f,
|
||||
config.getInterpolator(ANIM_TASKBAR_FADE, Interpolators.LINEAR));
|
||||
animation.setFloat(alphaTarget, AnimatedFloat.VALUE, isTaskbarVisible ? 1f : 0f, LINEAR);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user