diff options
| author | Liefu Liu <liefuliu@google.com> | 2018-03-21 10:25:49 -0700 |
|---|---|---|
| committer | Makoto Onuki <omakoto@google.com> | 2018-03-21 21:28:43 +0000 |
| commit | 5c0d7b3a7f4e4c2a584f7e0ccf0d41bbfb201f96 (patch) | |
| tree | 917232047725d9cc93a9522a0a2349bcb9960312 /core/java/android | |
| parent | dc5677336c35c44e26592dfeefe160a4a9c4bbe0 (diff) | |
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.
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/content/ContentResolver.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/java/android/content/ContentResolver.java b/core/java/android/content/ContentResolver.java index ce7d3af8404a..440103a6d8a4 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. */ |
