Snap for 8722206 from 844efbaa75 to tm-qpr1-release

Change-Id: I76d916b6fe1a8364cb806423a4f20e54bf2c836d
This commit is contained in:
Android Build Coastguard Worker
2022-06-15 01:24:48 +00:00
3 changed files with 7 additions and 5 deletions
@@ -165,7 +165,7 @@ public class RecentsModel implements IconChangeListener, TaskStackChangeListener
}
@Override
public void onTaskSnapshotChanged(int taskId, ThumbnailData snapshot) {
public boolean onTaskSnapshotChanged(int taskId, ThumbnailData snapshot) {
mThumbnailCache.updateTaskSnapShot(taskId, snapshot);
for (int i = mThumbnailChangeListeners.size() - 1; i >= 0; i--) {
@@ -174,6 +174,7 @@ public class RecentsModel implements IconChangeListener, TaskStackChangeListener
task.thumbnail = snapshot;
}
}
return true;
}
@Override
@@ -390,10 +390,8 @@ public class TaskViewSimulator implements TransformParams.BuilderProxy {
.withWindowCrop(mTmpCropRect)
.withCornerRadius(getCurrentCornerRadius());
if (ENABLE_QUICKSTEP_LIVE_TILE.get() && params.getRecentsSurface() != null) {
// When relativeLayer = 0, it reverts the surfaces back to the original order.
builder.withRelativeLayerTo(params.getRecentsSurface(),
mDrawsBelowRecents ? Integer.MIN_VALUE : 0);
if (ENABLE_QUICKSTEP_LIVE_TILE.get()) {
builder.withLayer(mDrawsBelowRecents ? Integer.MIN_VALUE : 0);
}
}
@@ -96,6 +96,9 @@ public final class FeatureFlags {
public static final BooleanFlag ENABLE_QUICK_SEARCH = new DeviceFlag("ENABLE_QUICK_SEARCH",
true, "Use quick search behavior.");
public static final BooleanFlag ENABLE_HIDE_HEADER = new DeviceFlag("ENABLE_HIDE_HEADER",
true, "Hide header on keyboard before typing in all apps");
public static final BooleanFlag COLLECT_SEARCH_HISTORY = new DeviceFlag(
"COLLECT_SEARCH_HISTORY", false, "Allow launcher to collect search history for log");