mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 08:56:55 +00:00
Migrate ENABLE_TASKBAR_PINNING to aconfig flag
Test: Manual, Presubmit Bug: 265437087 Flag: ACONFIG com.android.launcher3.enable_taskbar_pinning DISABLED Change-Id: I4800230c04feceefa2398e189c493c8c4a7b2fe5
This commit is contained in:
@@ -26,7 +26,7 @@ import static com.android.launcher3.Utilities.squaredHypot;
|
||||
import static com.android.launcher3.anim.AnimatedFloat.VALUE;
|
||||
import static com.android.launcher3.anim.AnimatorListeners.forEndCallback;
|
||||
import static com.android.launcher3.config.FeatureFlags.ENABLE_TASKBAR_NAVBAR_UNIFICATION;
|
||||
import static com.android.launcher3.config.FeatureFlags.ENABLE_TASKBAR_PINNING;
|
||||
import static com.android.launcher3.config.FeatureFlags.enableTaskbarPinning;
|
||||
import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_TASKBAR_ALLAPPS_BUTTON_TAP;
|
||||
import static com.android.launcher3.taskbar.TaskbarPinningController.PINNING_PERSISTENT;
|
||||
import static com.android.launcher3.taskbar.TaskbarPinningController.PINNING_TRANSIENT;
|
||||
@@ -221,7 +221,7 @@ public class TaskbarViewController implements TaskbarControllers.LoggableTaskbar
|
||||
mTaskbarIconAlpha.get(ALPHA_INDEX_SMALL_SCREEN)
|
||||
.animateToValue(isPhoneButtonNavMode(mActivity) ? 0 : 1).start();
|
||||
}
|
||||
if (ENABLE_TASKBAR_PINNING.get()) {
|
||||
if (enableTaskbarPinning()) {
|
||||
mTaskbarView.addOnLayoutChangeListener(mTaskbarViewLayoutChangeListener);
|
||||
}
|
||||
}
|
||||
@@ -234,7 +234,7 @@ public class TaskbarViewController implements TaskbarControllers.LoggableTaskbar
|
||||
}
|
||||
|
||||
public void onDestroy() {
|
||||
if (ENABLE_TASKBAR_PINNING.get()) {
|
||||
if (enableTaskbarPinning()) {
|
||||
mTaskbarView.removeOnLayoutChangeListener(mTaskbarViewLayoutChangeListener);
|
||||
}
|
||||
LauncherAppState.getInstance(mActivity).getModel().removeCallbacks(mModelCallbacks);
|
||||
@@ -672,7 +672,7 @@ public class TaskbarViewController implements TaskbarControllers.LoggableTaskbar
|
||||
// to avoid icons disappearing rather than fading out visually.
|
||||
setter.setViewAlpha(child, 0, Interpolators.clampToProgress(LINEAR, 0.8f, 1f));
|
||||
} else if ((isAllAppsButton && !FeatureFlags.ENABLE_ALL_APPS_BUTTON_IN_HOTSEAT.get())
|
||||
|| (isTaskbarDividerView && ENABLE_TASKBAR_PINNING.get())) {
|
||||
|| (isTaskbarDividerView && enableTaskbarPinning())) {
|
||||
if (!isToHome
|
||||
&& mIsHotseatIconOnTopWhenAligned
|
||||
&& mIsStashed) {
|
||||
|
||||
Reference in New Issue
Block a user