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

Commit cc2a2fa6 authored by Felipe Leme's avatar Felipe Leme
Browse files

Moved final vibration to the end of the process.

BUG: 26347468
Change-Id: I872d9175fd09b47da512cb2da11a533a921d9a5c
parent c507e7c3
Loading
Loading
Loading
Loading
+8 −8
Original line number Original line Diff line number Diff line
@@ -1279,14 +1279,6 @@ int main(int argc, char *argv[]) {


    dumpstate(do_early_screenshot ? "": screenshot_path, version);
    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 */
    /* close output if needed */
    if (is_redirecting) {
    if (is_redirecting) {
        fclose(stdout);
        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 */
    /* tell activity manager we're done */
    if (do_broadcast) {
    if (do_broadcast) {
        if (!path.empty()) {
        if (!path.empty()) {