commit | 7f9488dcf29b319dad932661344d88934fc0f2e3 | [log] [tgz] |
---|---|---|
author | Wei Sheng Shih <wilsonshih@google.com> | Wed Jun 02 10:08:06 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Jun 02 10:08:06 2021 +0000 |
tree | 4e413dc20f4e105c9bff8dc1760f7ee9c12ac9f4 | |
parent | 64091a67024255bd57ebdc3e3caedb2fa85f7393 [diff] | |
parent | 630efccd7ad8e35a1b12125b17b6cf96ffe65c32 [diff] |
Merge "Read the starting surface icon size from framework" into sc-dev am: 630efccd7a Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14609921 Change-Id: Ieb882a1dd7280405fcccfdd8d634fd09372bf296
diff --git a/quickstep/src/com/android/launcher3/QuickstepTransitionManager.java b/quickstep/src/com/android/launcher3/QuickstepTransitionManager.java index 42baa65..36322ce 100644 --- a/quickstep/src/com/android/launcher3/QuickstepTransitionManager.java +++ b/quickstep/src/com/android/launcher3/QuickstepTransitionManager.java
@@ -1409,14 +1409,14 @@ : APP_LAUNCH_ALPHA_DOWN_DURATION; iconAlphaStart = hasSplashScreen && !hasDifferentAppIcon ? 0 : 1f; - // TOOD: Share value from shell when available. - final float windowIconSize = Utilities.pxFromSp(108, r.getDisplayMetrics()); + final int windowIconSize = ResourceUtils.getDimenByName("starting_surface_icon_size", + r, 108); cropCenterXStart = windowTargetBounds.centerX(); cropCenterYStart = windowTargetBounds.centerY(); - cropWidthStart = (int) windowIconSize; - cropHeightStart = (int) windowIconSize; + cropWidthStart = windowIconSize; + cropHeightStart = windowIconSize; cropWidthEnd = windowTargetBounds.width(); cropHeightEnd = windowTargetBounds.height();