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

Commit 51366be8 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Sync APIs use seconds instead of ms.

Bug: 7668972
Change-Id: I7b253fe17d9539695adc474a69546645586b5f1a
parent 05191053
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -37,7 +37,6 @@ import android.os.Parcel;
import android.os.RemoteException;
import android.os.ServiceManager;
import android.os.UserHandle;
import android.text.format.DateUtils;
import android.util.Log;
import android.util.Slog;
import android.util.SparseIntArray;
@@ -408,10 +407,10 @@ public final class ContentService extends IContentService.Stub {
                "no permission to write the sync settings");
        int userId = UserHandle.getCallingUserId();

        if (pollFrequency <= DateUtils.MINUTE_IN_MILLIS) {
        if (pollFrequency < 60) {
            Slog.w(TAG, "Requested poll frequency of " + pollFrequency
                    + "ms being rounded up to 60 seconds.");
            pollFrequency = DateUtils.MINUTE_IN_MILLIS;
                    + " seconds being rounded up to 60 seconds.");
            pollFrequency = 60;
        }

        long identityToken = clearCallingIdentity();