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

Commit a9f82f92 authored by Steve Kondik's avatar Steve Kondik Committed by Gerrit Code Review
Browse files

Merge "Ensure actual delay in vibrate pattern" into gingerbread

parents 53810d70 4c2e29d9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -304,8 +304,8 @@ public class VibratorService extends IVibratorService.Stub {

        private void delay(long duration) {
            if (duration > 0) {
                long bedtime = SystemClock.uptimeMillis();
                do {
                    long bedtime = SystemClock.uptimeMillis();
                    try {
                        this.wait(duration);
                    }
@@ -315,7 +315,7 @@ public class VibratorService extends IVibratorService.Stub {
                        break;
                    }
                    duration = duration
                            - SystemClock.uptimeMillis() - bedtime;
                            - (SystemClock.uptimeMillis() - bedtime);
                } while (duration > 0);
            }
        }