Show screenshot and select in task menu

Hide screenshot and select from menu if thumbnail is null

Bug: 383662632
Flag: com.android.launcher3.enable_show_enabled_shortcuts_in_accessibility_menu
Test: OverviewMenuImageTest & manual. See bug.
Change-Id: Idf41de7e36b63f7bcc8639f5f3932a61e56ebfcd
This commit is contained in:
samcackett
2025-03-06 16:17:02 +00:00
committed by Sam Cackett
parent 865982c634
commit 0946c8c123
6 changed files with 109 additions and 28 deletions
@@ -1578,7 +1578,10 @@ public abstract class RecentsView<
== getPagedOrientationHandler().getPrimaryScroll(this);
}
private boolean isFocusedTaskInExpectedScrollPosition() {
/**
* Returns true if the focused TaskView is in expected scroll position.
*/
public boolean isFocusedTaskInExpectedScrollPosition() {
TaskView focusedTask = getFocusedTaskView();
return focusedTask != null && isTaskInExpectedScrollPosition(focusedTask);
}