Make enableTaskbarNoRecreate() depend on ENABLE_TASKBAR_PINNING and ENABLE_TASKBAR_NAVBAR_UNIFICATION

We want to turn on the flag when either of the dependent features is on

Bug: 299193589
Test: N/A
Change-Id: I7b48ff2be0cf9da3b6bc00d75370fa585ce4140d
This commit is contained in:
Tracy Zhou committed 2023-11-08 14:52:58 -08:00
1 parent f57204c0dd
commit f2d7be1cec
8 files changed
+30 -18

No files matched your search

@@ -18,6 +18,8 @@ package com.android.launcher3.taskbar;
import static android.view.KeyEvent.ACTION_UP;
import static android.view.KeyEvent.KEYCODE_BACK;
import static com.android.launcher3.config.FeatureFlags.ENABLE_TASKBAR_NAVBAR_UNIFICATION;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.RectF;
@@ -126,7 +128,7 @@ public class TaskbarDragLayer extends BaseDragLayer<TaskbarActivityContext> {
}
protected void onDestroy() {
onDestroy(!TaskbarManager.ENABLE_TASKBAR_NAVBAR_UNIFICATION);
onDestroy(!ENABLE_TASKBAR_NAVBAR_UNIFICATION);
}
@Override