Permalink
Browse files

Shorter glow animation, faster UI?

  • Loading branch information...
rascarlo committed May 28, 2012
1 parent 747e776 commit 5eb4545abaa8d1084eba9462f6562b2c1b698023
Showing with 6 additions and 4 deletions.
  1. +6 −4 packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyButtonView.java
@@ -190,15 +190,17 @@ public void setPressed(boolean pressed) {
ObjectAnimator.ofFloat(this, "glowAlpha", 1f),
ObjectAnimator.ofFloat(this, "glowScale", GLOW_MAX_SCALE_FACTOR)
);
- as.setDuration(50);
- } else {
+ as.setDuration(10);
+ // stock is 50
+ } else {
as.playTogether(
ObjectAnimator.ofFloat(this, "glowAlpha", 0f),
ObjectAnimator.ofFloat(this, "glowScale", 1f),
ObjectAnimator.ofFloat(this, "drawingAlpha", BUTTON_QUIESCENT_ALPHA)
);
- as.setDuration(500);
- }
+ as.setDuration(100);
+ // stock is 500
+ }
as.start();
}
}

0 comments on commit 5eb4545

Please sign in to comment.