diff options
author | Jon Miranda <jonmiranda@google.com> | 2019-05-14 12:52:39 -0700 |
---|---|---|
committer | Jonathan Miranda <jonmiranda@google.com> | 2019-05-14 20:06:45 +0000 |
commit | 662f12fe6206d571bad8c1bc013be31dae87806a (patch) | |
tree | 40302e4a934b9754d9fd91f46e4602482f734a5b /quickstep/recents_ui_overrides/src/com/android/quickstep/util/ClipAnimationHelper.java | |
parent | 35885b3ca45cf33308ad15f873abc3641e465b12 (diff) | |
parent | cf3584fdf4bcb9bd92495dc8519aad52b1f4d6af (diff) | |
download | android_packages_apps_Trebuchet-662f12fe6206d571bad8c1bc013be31dae87806a.tar.gz android_packages_apps_Trebuchet-662f12fe6206d571bad8c1bc013be31dae87806a.tar.bz2 android_packages_apps_Trebuchet-662f12fe6206d571bad8c1bc013be31dae87806a.zip |
Merging ub-launcher3-qt-dev, build 5565340
Test: Manual
Bug:118266305 Weird behavior of choosing external display task from Recents
Bug:122843905 Polish app opening transition
Bug:123900446 App to home animation should zoom into the app icon
Bug:124239413 Tests failed, caused by "One thread to rule them all"
Bug:124414511 Notification dots location should respect the icon shape when Theme is applied
Bug:124510042 [Gesture Nav] Home animation polish
Bug:128376812 Switching apps is very buggy
Bug:128986173 Not sure why the text for the at a glance widget is in Roboto instead of Google Sans.
Bug:129421797 Change client ids from GEL and OVERVIEW_GEL to home and overview
Bug:129985827 [Fully Gestural Navigation] Delay Recents animation when swiping up
Bug:130020567 Handle fullscreen correctly for quick switch
Bug:130303405 Use Adrian's haptic value for assist gesture
Bug:130451254 QSB/Folder icon color depends on three variants of wallpaper shade on light/dark theme
Bug:130558787 [Tests broken/flaky] home button not visible to accessibility in 2-button mode
Bug:130828539 [Gestural Nav] Screen pinning option is not available in fully gestural navigation mode.
Bug:131116593 Enable BindWidgetTest, RequestPinItemTest
Bug:131188880 [Failing test] AppPredictionsUITests.testPredictionExistsInAllApps
Bug:131315856 Restore of launcher for work profile failed.
Bug:131360075 [Gesture Nav] Polish/finish landscape
Bug:131360249 Status bar font color inversion delayed
Bug:131419978 [Massive test failure] Switching to 3-button mode results in 2-button mode (at least on Crosshatch)
Bug:131630813 FallbackRecentsTest failing in 0-button mode
Bug:131772711 [Failing test] AppPredictionsUITests.testPredictionsDisabled
Bug:131840601 Ensure Go launcher uses the same logging points for common actions
Bug:131847153 [Feedback] Swiping from thr corners from locked phone does not put phone in listening mode (shoul...
Bug:131853975 Recents Go: Fallback recents not consuming insets correctly
Bug:131940434 Add text input character count when app launch happens from search result container
Bug:132107664 Multiple different failures when running StartLauncherViaGestureTests on Pixe1 devices
Bug:132112131 Polish app to overview animation to match UI mocks for Recents Go
Bug:132173901 0-button: swipe-up from killed Launcher not recognized
Bug:132177321 TaplTestsLauncher3.testDragAppIcon flakes even in flight mode
Bug:132269601 Allow fling assistant invocation
Bug:132285006 ContentFillItemAnimator endAnimations() does not work properly
Bug:132293341 Recents Go: Fallback recents does not always update tasks on going to recents from app
Bug:132381412 Empty views show up briefly with new app to recents anim
Bug:132449252 Recents Go: Add animation from home target to recents for fallback recents
Bug:132458790 Launcher build is broken due to AppTarget.Builder not available
Bug:132461256 Non-transparent nav bar looks bad on Recents Go b/c of lack of margins
Bug:64712476 Import translations for dev branches
Bug:80529128 Home screen went to landscape, even though settings disallows it
Change-Id: I2ffa2c41ff3ded55e1aab66d735da481112684e3
Diffstat (limited to 'quickstep/recents_ui_overrides/src/com/android/quickstep/util/ClipAnimationHelper.java')
-rw-r--r-- | quickstep/recents_ui_overrides/src/com/android/quickstep/util/ClipAnimationHelper.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/quickstep/recents_ui_overrides/src/com/android/quickstep/util/ClipAnimationHelper.java b/quickstep/recents_ui_overrides/src/com/android/quickstep/util/ClipAnimationHelper.java index c9f4ab437..3121dc379 100644 --- a/quickstep/recents_ui_overrides/src/com/android/quickstep/util/ClipAnimationHelper.java +++ b/quickstep/recents_ui_overrides/src/com/android/quickstep/util/ClipAnimationHelper.java @@ -35,12 +35,14 @@ import androidx.annotation.Nullable; import com.android.launcher3.BaseDraggingActivity; import com.android.launcher3.DeviceProfile; +import com.android.launcher3.LauncherState; import com.android.launcher3.R; import com.android.launcher3.Utilities; import com.android.launcher3.views.BaseDragLayer; import com.android.quickstep.RecentsModel; import com.android.quickstep.views.RecentsView; import com.android.quickstep.views.TaskThumbnailView; +import com.android.quickstep.views.TaskView; import com.android.systemui.shared.recents.ISystemUiProxy; import com.android.systemui.shared.recents.utilities.RectFEvaluator; import com.android.systemui.shared.system.RemoteAnimationTargetCompat; @@ -280,6 +282,21 @@ public class ClipAnimationHelper { } } + /** + * Compute scale and translation y such that the specified task view fills the screen. + */ + public LauncherState.ScaleAndTranslation getOverviewFullscreenScaleAndTranslation(TaskView v) { + TaskThumbnailView thumbnailView = v.getThumbnail(); + RecentsView recentsView = v.getRecentsView(); + fromTaskThumbnailView(thumbnailView, recentsView); + Rect taskSize = new Rect(); + recentsView.getTaskSize(taskSize); + updateTargetRect(taskSize); + float scale = mSourceRect.width() / mTargetRect.width(); + float translationY = mSourceRect.centerY() - mSourceRect.top - mTargetRect.centerY(); + return new LauncherState.ScaleAndTranslation(scale, 0, translationY); + } + private void updateStackBoundsToMultiWindowTaskSize(BaseDraggingActivity activity) { ISystemUiProxy sysUiProxy = RecentsModel.INSTANCE.get(activity).getSystemUiProxy(); if (sysUiProxy != null) { |