Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d89f7f23 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Turn vibrator off explicitly on waveforms when amplitude is zero" am:...

Merge "Turn vibrator off explicitly on waveforms when amplitude is zero" am: 240fe528 am: 831f02d2

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1501672

Change-Id: I5c88cd297f4da3741561bdd8e237a35c7994b870
parents 95217b95 831f02d2
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1662,6 +1662,10 @@ public class VibratorService extends IVibratorService.Stub
                                    // Vibrator is already ON, so just change its amplitude.
                                    doVibratorSetAmplitude(amplitude);
                                }
                            } else {
                                // Previous vibration should have already finished, but we make sure
                                // the vibrator will be off for the next step when amplitude is 0.
                                doVibratorOff();
                            }

                            // We wait until the time this waveform step was supposed to end,