Skip to content

Commit 500b003

Browse files
author
Mikhail Naganov
committed
Improve JavaDoc for cache mode constants.
Bug: 5461416 Change-Id: I26c48a6428ff1afb5346eeaa02c5ca74ec95173c
1 parent 9014345 commit 500b003

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

core/java/android/webkit/WebSettings.java

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,30 +94,33 @@ public enum ZoomDensity {
9494
}
9595

9696
/**
97-
* Default cache usage pattern. Use with {@link #setCacheMode}.
97+
* Default cache usage mode. If the navigation type doesn't impose any
98+
* specific behavior, use cached resources when they are available
99+
* and not expired, otherwise load resources from the network.
100+
* Use with {@link #setCacheMode}.
98101
*/
99102
public static final int LOAD_DEFAULT = -1;
100103

101104
/**
102-
* Normal cache usage pattern. Use with {@link #setCacheMode}.
105+
* Normal cache usage mode. Use with {@link #setCacheMode}.
103106
*/
104107
public static final int LOAD_NORMAL = 0;
105108

106109
/**
107-
* Use cache if content is there, even if expired (eg, history nav).
108-
* If it is not in the cache, load from network.
110+
* Use cached resources when they are available, even if they have expired.
111+
* Otherwise load resources from the network.
109112
* Use with {@link #setCacheMode}.
110113
*/
111114
public static final int LOAD_CACHE_ELSE_NETWORK = 1;
112115

113116
/**
114-
* Don't use the cache, load from network.
117+
* Don't use the cache, load from the network.
115118
* Use with {@link #setCacheMode}.
116119
*/
117120
public static final int LOAD_NO_CACHE = 2;
118121

119122
/**
120-
* Don't use the network, load from cache only.
123+
* Don't use the network, load from the cache.
121124
* Use with {@link #setCacheMode}.
122125
*/
123126
public static final int LOAD_CACHE_ONLY = 3;

0 commit comments

Comments
 (0)