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

Commit f0bbf0d6 authored by Alex Buynytskyy's avatar Alex Buynytskyy
Browse files

Increase the default period to allow for more async writes.

Bug: 252726591
Test: presubmit
Change-Id: I652a101fac05dfc588b0cb02e77c6ddba8c593d4
parent 9233ddb4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -5594,8 +5594,8 @@ public final class Settings implements Watchable, Snappable {
    }

    private static final class RuntimePermissionPersistence {
        // 200-400ms delay to avoid monopolizing PMS lock when written for multiple users.
        private static final long WRITE_PERMISSIONS_DELAY_MILLIS = 300;
        // 700-1300ms delay to avoid monopolizing PMS lock when written for multiple users.
        private static final long WRITE_PERMISSIONS_DELAY_MILLIS = 1000;
        private static final double WRITE_PERMISSIONS_DELAY_JITTER = 0.3;

        private static final long MAX_WRITE_PERMISSIONS_DELAY_MILLIS = 2000;