Merge "Remove fullscreenProgress that is not being used" into main

This commit is contained in:
Jordan Silva authored and Android (Google) Code Review committed 2025-02-05 09:13:24 -08:00
commit cbf3dc26f3
3 files changed
-9

No files matched your search

@@ -20,8 +20,6 @@ import kotlinx.coroutines.flow.MutableStateFlow
// This is far from complete but serves the purpose of enabling refactoring in other areas
class RecentsViewData {
val fullscreenProgress = MutableStateFlow(1f)
// Whether the current RecentsView state supports task overlays.
// TODO(b/331753115): Derive from RecentsView state flow once migrated to MVVM.
val overlayEnabled = MutableStateFlow(false)
@@ -34,10 +34,6 @@ class RecentsViewModel(
recentsTasksRepository.setVisibleTasks(visibleTaskIdList.toSet())
}
fun updateFullscreenProgress(fullscreenProgress: Float) {
recentsViewData.fullscreenProgress.value = fullscreenProgress
}
fun updateTasksFullyVisible(taskIds: Set<Int>) {
recentsViewData.settledFullyVisibleTaskIds.value = taskIds
}
@@ -2189,9 +2189,6 @@ public abstract class RecentsView<
public void setFullscreenProgress(float fullscreenProgress) {
mFullscreenProgress = fullscreenProgress;
if (enableRefactorTaskThumbnail()) {
mRecentsViewModel.updateFullscreenProgress(mFullscreenProgress);
}
for (TaskView taskView : getTaskViews()) {
taskView.setFullscreenProgress(mFullscreenProgress);
}