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

Commit 448b39d7 authored by Felipe Leme's avatar Felipe Leme Committed by android-build-merger
Browse files

Moved final vibration to the end of the process.

am: cc2a2fa6

* commit 'cc2a2fa6':
  Moved final vibration to the end of the process.
parents f68ebdd4 cc2a2fa6
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -1279,14 +1279,6 @@ int main(int argc, char *argv[]) {

    dumpstate(do_early_screenshot ? "": screenshot_path, version);

    /* done */
    if (vibrator) {
        for (int i = 0; i < 3; i++) {
            vibrate(vibrator.get(), 75);
            usleep((75 + 50) * 1000);
        }
    }

    /* close output if needed */
    if (is_redirecting) {
        fclose(stdout);
@@ -1347,6 +1339,14 @@ int main(int argc, char *argv[]) {
        }
    }

    /* vibrate a few but shortly times to let user know it's finished */
    if (vibrator) {
        for (int i = 0; i < 3; i++) {
            vibrate(vibrator.get(), 75);
            usleep((75 + 50) * 1000);
        }
    }

    /* tell activity manager we're done */
    if (do_broadcast) {
        if (!path.empty()) {