From 5c0d7b3a7f4e4c2a584f7e0ccf0d41bbfb201f96 Mon Sep 17 00:00:00 2001 From: Liefu Liu Date: Wed, 21 Mar 2018 10:25:49 -0700 Subject: [PATCH] Updated the javadoc of ContentResolver.addPeriodicSync to correct the minimum interval of periodic sync. Bug: 76033438 Change-Id: I1ccb7ae174f8f13dae24296a3fb7e9dfcd77c7fa Fixes: 76033438 Test: javadoc only. presubmit only. --- core/java/android/content/ContentResolver.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/java/android/content/ContentResolver.java b/core/java/android/content/ContentResolver.java index ce7d3af8404ad..440103a6d8a46 100644 --- a/core/java/android/content/ContentResolver.java +++ b/core/java/android/content/ContentResolver.java @@ -2464,8 +2464,9 @@ public abstract class ContentResolver { * @param account the account to specify in the sync * @param authority the provider to specify in the sync request * @param extras extra parameters to go along with the sync request - * @param pollFrequency how frequently the sync should be performed, in seconds. A minimum value - * of 1 hour is enforced. + * @param pollFrequency how frequently the sync should be performed, in seconds. + * On Android API level 24 and above, a minmam interval of 15 minutes is enforced. + * On previous versions, the minimum interval is 1 hour. * @throws IllegalArgumentException if an illegal extra was set or if any of the parameters * are null. */