Allow animation movie for "find the sensor" flow
This adds an optional overlay to specify a per-device movie to illustrate enrolling a fingerprint. To enable, create a new layout overlay for fingerprint_enroll_find_sensor_graphic.xml using FingerprintLocationAnimationVideoView Fixes bug 22954305 Change-Id: I59294f71617ecf7a9bf09603fc0b068cc5aa8ff9
This commit is contained in:
@@ -34,7 +34,8 @@ import com.android.settings.R;
|
||||
/**
|
||||
* View which plays an animation to indicate where the sensor is on the device.
|
||||
*/
|
||||
public class FingerprintLocationAnimationView extends View {
|
||||
public class FingerprintLocationAnimationView extends View implements
|
||||
FingerprintFindSensorAnimation {
|
||||
|
||||
private static final float MAX_PULSE_ALPHA = 0.15f;
|
||||
private static final long DELAY_BETWEEN_PHASE = 1000;
|
||||
@@ -95,10 +96,12 @@ public class FingerprintLocationAnimationView extends View {
|
||||
return getHeight() * mFractionCenterY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void startAnimation() {
|
||||
startPhase();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void stopAnimation() {
|
||||
removeCallbacks(mStartPhaseRunnable);
|
||||
if (mRadiusAnimator != null) {
|
||||
|
Reference in New Issue
Block a user