From 6adae751e76e6467f5c1101e154e76ef903849c2 Mon Sep 17 00:00:00 2001 From: Ats Jenk Date: Thu, 16 Mar 2023 09:26:10 -0700 Subject: [PATCH] Make sure desktop task view is only used in proto 2 When swiping up to recents and creating the current tasks TaskView, we were checking for proto 1 or proto 2 to be enabled. And if they were, we were creating the DesktopTaskView object. The DesktopTaskView should only be enabled in proto 2. Updated the feature flag check. Bug: 273950066 Test: enable proto 1 and gesture nav, have a desktop app open, swipe up to recents, no desktop tile Test: enable proto 2 and gesture nav, have a desktop app open, swipe up to recents, see the desktop tile Change-Id: I73a47347d60e0f57ad6cf6e363a6fe83ac8cc509 --- quickstep/src/com/android/quickstep/views/RecentsView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index 4ba02769a5..af42affdce 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java @@ -2614,7 +2614,7 @@ public abstract class RecentsView