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

Commit 75faa686 authored by Narayan Kamath's avatar Narayan Kamath
Browse files

LocationAccessCheck: Update default DELAY_CHECK_MILLIS to 1 day.

Bug: 124385881
Test: make

Change-Id: Idfbbf6f020e9b18d400e99ace167e12ff0121965
parent c4b7e139
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -54,7 +54,6 @@ import static com.android.packageinstaller.permission.utils.Utils.isLocationAcce

import static java.lang.System.currentTimeMillis;
import static java.util.concurrent.TimeUnit.DAYS;
import static java.util.concurrent.TimeUnit.MINUTES;

import android.app.AppOpsManager;
import android.app.AppOpsManager.HistoricalOps;
@@ -171,13 +170,13 @@ public class LocationAccessCheck {
    /**
     * Get the delay in between granting a permission and the follow up check.
     *
     * <p>Default: 10 minutes
     * <p>Default: 1 day
     *
     * @return The delay in milliseconds
     */
    private long getDelayMillis() {
        return Settings.Secure.getLong(mContentResolver,
                LOCATION_ACCESS_CHECK_DELAY_MILLIS, MINUTES.toMillis(10));
                LOCATION_ACCESS_CHECK_DELAY_MILLIS, DAYS.toMillis(1));
    }

    /**