Fixes animation video from not playing after onStop

Adds a pause command that doesn't destroy the video surface, and calls
onStop when we want to destroy the media player.

bug:26516460
Change-Id: If46d26088e81fdca6a73a663a48901bb5245acc8
This commit is contained in:
Udam Saini
2016-01-12 14:43:43 -08:00
parent bd99c43887
commit 8298b47f00
4 changed files with 24 additions and 1 deletions

View File

@@ -112,6 +112,11 @@ public class FingerprintLocationAnimationView extends View implements
}
}
@Override
public void pauseAnimation() {
stopAnimation();
}
private void startPhase() {
startRadiusAnimation();
startAlphaAnimation();