diff options
author | Mikhail Naganov <mnaganov@google.com> | 2012-07-25 13:06:14 +0100 |
---|---|---|
committer | Mikhail Naganov <mnaganov@google.com> | 2012-07-25 13:06:14 +0100 |
commit | 500b003ff14b8a5aee2927bb577ab68d71ccfc12 (patch) | |
tree | b40029fb680e37e85ffacdd27a6b260ce2b1be04 /core/java/android/webkit/WebSettings.java | |
parent | 9014345ddae564ce15bbc247ffbdb7c19dd8fbbf (diff) | |
download | frameworks_base-500b003ff14b8a5aee2927bb577ab68d71ccfc12.zip frameworks_base-500b003ff14b8a5aee2927bb577ab68d71ccfc12.tar.gz frameworks_base-500b003ff14b8a5aee2927bb577ab68d71ccfc12.tar.bz2 |
Improve JavaDoc for cache mode constants.
Bug: 5461416
Change-Id: I26c48a6428ff1afb5346eeaa02c5ca74ec95173c
Diffstat (limited to 'core/java/android/webkit/WebSettings.java')
-rw-r--r-- | core/java/android/webkit/WebSettings.java | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/core/java/android/webkit/WebSettings.java b/core/java/android/webkit/WebSettings.java index 7a67a14..193e98d 100644 --- a/core/java/android/webkit/WebSettings.java +++ b/core/java/android/webkit/WebSettings.java @@ -94,30 +94,33 @@ public abstract class WebSettings { } /** - * Default cache usage pattern. Use with {@link #setCacheMode}. + * Default cache usage mode. If the navigation type doesn't impose any + * specific behavior, use cached resources when they are available + * and not expired, otherwise load resources from the network. + * Use with {@link #setCacheMode}. */ public static final int LOAD_DEFAULT = -1; /** - * Normal cache usage pattern. Use with {@link #setCacheMode}. + * Normal cache usage mode. Use with {@link #setCacheMode}. */ public static final int LOAD_NORMAL = 0; /** - * Use cache if content is there, even if expired (eg, history nav). - * If it is not in the cache, load from network. + * Use cached resources when they are available, even if they have expired. + * Otherwise load resources from the network. * Use with {@link #setCacheMode}. */ public static final int LOAD_CACHE_ELSE_NETWORK = 1; /** - * Don't use the cache, load from network. + * Don't use the cache, load from the network. * Use with {@link #setCacheMode}. */ public static final int LOAD_NO_CACHE = 2; /** - * Don't use the network, load from cache only. + * Don't use the network, load from the cache. * Use with {@link #setCacheMode}. */ public static final int LOAD_CACHE_ONLY = 3; |