Add animation for the predicted icon ring
Animation is modeled after the notification dot animation. - This avoids the ring jumping in after swiping up to home to a predicted app. - Also decreased the amount of time the icon has to fade out so that it shows up less during the animation. Fixes: 360115794 Test: open predicted app from hotseat, swipe up to return home Flag: EXEMPT bugfix Change-Id: I59659610eb2e9f375a408d553bb4aa80947a28c4
This commit is contained in:
1 parent
173c218366
commit
7d783ff70f
3 files changed
+68
-5
No files matched your search
@@ -175,8 +175,9 @@ public class FloatingIconView extends FrameLayout implements
|
||||
mLauncher.getDeviceProfile(), taskViewDrawAlpha);
|
||||
|
||||
if (mFadeOutView != null) {
|
||||
// The alpha goes from 1 to 0 when progress is 0 and 0.33 respectively.
|
||||
mFadeOutView.setAlpha(1 - Math.min(1f, mapToRange(progress, 0, 0.33f, 0, 1, LINEAR)));
|
||||
// The alpha goes from 1 to 0 when progress is 0 and 0.15 respectively.
|
||||
// This value minimizes view display time while still allowing the view to fade out.
|
||||
mFadeOutView.setAlpha(1 - Math.min(1f, mapToRange(progress, 0, 0.15f, 0, 1, LINEAR)));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user