Merge "Start 2d animation when view laid out." into udc-dev
This commit is contained in:
@@ -158,15 +158,18 @@ public class KeyguardPatternView extends KeyguardInputView
|
|||||||
|
|
||||||
public void startAppearAnimation() {
|
public void startAppearAnimation() {
|
||||||
enableClipping(false);
|
enableClipping(false);
|
||||||
setAlpha(1f);
|
setAlpha(0f);
|
||||||
setTranslationY(mAppearAnimationUtils.getStartTranslation());
|
setTranslationY(mAppearAnimationUtils.getStartTranslation());
|
||||||
AppearAnimationUtils.startTranslationYAnimation(this, 0 /* delay */, 500 /* duration */,
|
AppearAnimationUtils.startTranslationYAnimation(this, 0 /* delay */, 500 /* duration */,
|
||||||
0, mAppearAnimationUtils.getInterpolator(),
|
0, mAppearAnimationUtils.getInterpolator(),
|
||||||
getAnimationListener(InteractionJankMonitor.CUJ_LOCKSCREEN_PATTERN_APPEAR));
|
getAnimationListener(InteractionJankMonitor.CUJ_LOCKSCREEN_PATTERN_APPEAR));
|
||||||
|
mLockPatternView.post(() -> {
|
||||||
|
setAlpha(1f);
|
||||||
mAppearAnimationUtils.startAnimation2d(
|
mAppearAnimationUtils.startAnimation2d(
|
||||||
mLockPatternView.getCellStates(),
|
mLockPatternView.getCellStates(),
|
||||||
() -> enableClipping(true),
|
() -> enableClipping(true),
|
||||||
this);
|
KeyguardPatternView.this);
|
||||||
|
});
|
||||||
if (!TextUtils.isEmpty(mSecurityMessageDisplay.getText())) {
|
if (!TextUtils.isEmpty(mSecurityMessageDisplay.getText())) {
|
||||||
mAppearAnimationUtils.createAnimation(mSecurityMessageDisplay, 0,
|
mAppearAnimationUtils.createAnimation(mSecurityMessageDisplay, 0,
|
||||||
AppearAnimationUtils.DEFAULT_APPEAR_DURATION,
|
AppearAnimationUtils.DEFAULT_APPEAR_DURATION,
|
||||||
|
|||||||
Reference in New Issue
Block a user