SetupWizard: Cleanup end animation
Change-Id: Ie941b426b57dc39d18632ac4a68bb0c3526385fc
This commit is contained in:
parent
16486aead0
commit
aaec6f7e3e
|
@ -240,13 +240,19 @@ public class SetupWizardActivity extends Activity implements SetupDataCallbacks
|
||||||
animateOut();
|
animateOut();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void finish() {
|
||||||
|
super.finish();
|
||||||
|
overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
|
||||||
|
}
|
||||||
|
|
||||||
private void animateOut() {
|
private void animateOut() {
|
||||||
int cx = (mReveal.getLeft() + mReveal.getRight()) / 2;
|
int cx = (mReveal.getLeft() + mReveal.getRight()) / 2;
|
||||||
int cy = (mReveal.getTop() + mReveal.getBottom()) / 2;
|
int cy = (mReveal.getTop() + mReveal.getBottom()) / 2;
|
||||||
int finalRadius = Math.max(mReveal.getWidth(), mReveal.getHeight());
|
int finalRadius = Math.max(mReveal.getWidth(), mReveal.getHeight());
|
||||||
Animator anim =
|
Animator anim =
|
||||||
ViewAnimationUtils.createCircularReveal(mReveal, cx, cy, 0, finalRadius);
|
ViewAnimationUtils.createCircularReveal(mReveal, cx, cy, 0, finalRadius);
|
||||||
|
anim.setDuration(800);
|
||||||
anim.addListener(new Animator.AnimatorListener() {
|
anim.addListener(new Animator.AnimatorListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onAnimationStart(Animator animation) {
|
public void onAnimationStart(Animator animation) {
|
||||||
|
@ -258,7 +264,7 @@ public class SetupWizardActivity extends Activity implements SetupDataCallbacks
|
||||||
mHandler.post(new Runnable() {
|
mHandler.post(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
finishSetup();;
|
finishSetup();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue