mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 15:26:58 +00:00
Merge "Recycle thumbnailViews in DesktopTaskView" into main
This commit is contained in:
@@ -28,10 +28,7 @@
|
||||
launcher:focusBorderColor="?androidprv:attr/materialColorOutline"
|
||||
launcher:hoverBorderColor="?androidprv:attr/materialColorPrimary">
|
||||
|
||||
<com.android.quickstep.views.TaskThumbnailViewDeprecated
|
||||
android:id="@+id/snapshot"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"/>
|
||||
<include layout="@layout/task_thumbnail" />
|
||||
|
||||
<!-- Filtering affects only alpha instead of the visibility since visibility can be altered
|
||||
separately through RecentsView#resetFromSplitSelectionState() -->
|
||||
|
||||
@@ -42,10 +42,7 @@
|
||||
views that do not inherint from TaskView only or create a generic TaskView that have
|
||||
N number of tasks.
|
||||
-->
|
||||
<com.android.quickstep.views.TaskThumbnailViewDeprecated
|
||||
android:id="@+id/snapshot"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
<include layout="@layout/task_thumbnail"
|
||||
android:visibility="gone" />
|
||||
|
||||
<ViewStub
|
||||
|
||||
@@ -33,15 +33,10 @@
|
||||
launcher:focusBorderColor="?androidprv:attr/materialColorOutline"
|
||||
launcher:hoverBorderColor="?androidprv:attr/materialColorPrimary">
|
||||
|
||||
<com.android.quickstep.views.TaskThumbnailViewDeprecated
|
||||
android:id="@+id/snapshot"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"/>
|
||||
<include layout="@layout/task_thumbnail"/>
|
||||
|
||||
<com.android.quickstep.views.TaskThumbnailViewDeprecated
|
||||
android:id="@+id/bottomright_snapshot"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"/>
|
||||
<include layout="@layout/task_thumbnail"
|
||||
android:id="@+id/bottomright_snapshot" />
|
||||
|
||||
<!-- Filtering affects only alpha instead of the visibility since visibility can be altered
|
||||
separately through RecentsView#resetFromSplitSelectionState() -->
|
||||
|
||||
20
quickstep/res/layout/task_thumbnail.xml
Normal file
20
quickstep/res/layout/task_thumbnail.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
Copyright (C) 2024 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<com.android.quickstep.views.TaskThumbnailViewDeprecated
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/snapshot"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
Reference in New Issue
Block a user