Merge "TaskbarPinningController Unit Tests" into main

This commit is contained in:
Jagrut Desai authored and Android (Google) Code Review committed 2023-12-12 16:19:00 +00:00
commit 2be2b93256
5 files changed
+274 -35

No files matched your search

@@ -74,6 +74,7 @@ import androidx.annotation.VisibleForTesting;
import com.android.launcher3.AbstractFloatingView;
import com.android.launcher3.BubbleTextView;
import com.android.launcher3.DeviceProfile;
import com.android.launcher3.LauncherPrefs;
import com.android.launcher3.LauncherSettings.Favorites;
import com.android.launcher3.R;
import com.android.launcher3.anim.AnimatorPlaybackController;
@@ -183,6 +184,8 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
private DeviceProfile mPersistentTaskbarDeviceProfile;
private final LauncherPrefs mLauncherPrefs;
public TaskbarActivityContext(Context windowContext,
@Nullable Context navigationBarPanelContext, DeviceProfile launcherDp,
TaskbarNavButtonController buttonController, ScopedUnfoldTransitionProgressProvider
@@ -294,6 +297,8 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
new KeyboardQuickSwitchController(),
new TaskbarPinningController(this),
bubbleControllersOptional);
mLauncherPrefs = LauncherPrefs.get(this);
}
/** Updates {@link DeviceProfile} instances for any Taskbar windows. */
@@ -411,6 +416,11 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
getDeviceProfile().toSmallString());
}
@NonNull
public LauncherPrefs getLauncherPrefs() {
return mLauncherPrefs;
}
/**
* Returns the View bounds of transient taskbar.
*/