Use snapshotView references in TaskContainer when possible
- Moved majority of TaskContainer.thumbnailViewDeprecated usage to TaskContainer.snapshotView, so they'll cover the new TaskThumbnailView as well - There are afew location left that will be handled as a follow-up - Removed TaskThumbnailView's splitTranslation and use translation directly as it's the only translation we use Bug: 336612373 Test: Ensure all Task CUJs still work without refacorting Test: Ensure major Task CUJs work with refactoring Flag: EXEMPT refactor Flag: com.android.launcher3.enable_refactor_task_thumbnail Change-Id: Ieb52236bc503ce0d0a511249978c1821a82d406e
This commit is contained in:
1 parent
b76356a202
commit
c06bc41ee0
13 files changed
+136
-202
No files matched your search
+1
-1
@@ -252,7 +252,7 @@ public abstract class TaskViewTouchController<CONTAINER extends Context & Recent
|
||||
mTaskBeingDragged, maxDuration, currentInterpolator);
|
||||
|
||||
// Since the thumbnail is what is filling the screen, based the end displacement on it.
|
||||
View thumbnailView = mTaskBeingDragged.getFirstThumbnailViewDeprecated();
|
||||
View thumbnailView = mTaskBeingDragged.getFirstSnapshotView();
|
||||
mTempCords[1] = orientationHandler.getSecondaryDimension(thumbnailView);
|
||||
dl.getDescendantCoordRelativeToSelf(thumbnailView, mTempCords);
|
||||
mEndDisplacement = secondaryLayerDimension - mTempCords[1];
|
||||
|
||||
Reference in new issue
Block a user