Skip to content

Commit 5a1ef41

Browse files
committed
Undeprecate LayoutAlgorithm
Bug: 5533078 There is no alternative and this is still useful and used. It should not have been deprecated. Change-Id: I641026cf76ea87738909827b7c48a556d9021d11
1 parent c740325 commit 5a1ef41

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

api/current.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25145,7 +25145,7 @@ package android.webkit {
2514525145
method public synchronized java.lang.String getFixedFontFamily();
2514625146
method public synchronized boolean getJavaScriptCanOpenWindowsAutomatically();
2514725147
method public synchronized boolean getJavaScriptEnabled();
25148-
method public deprecated synchronized android.webkit.WebSettings.LayoutAlgorithm getLayoutAlgorithm();
25148+
method public synchronized android.webkit.WebSettings.LayoutAlgorithm getLayoutAlgorithm();
2514925149
method public boolean getLightTouchEnabled();
2515025150
method public boolean getLoadWithOverviewMode();
2515125151
method public synchronized boolean getLoadsImagesAutomatically();
@@ -25192,7 +25192,7 @@ package android.webkit {
2519225192
method public synchronized void setGeolocationEnabled(boolean);
2519325193
method public synchronized void setJavaScriptCanOpenWindowsAutomatically(boolean);
2519425194
method public synchronized void setJavaScriptEnabled(boolean);
25195-
method public deprecated synchronized void setLayoutAlgorithm(android.webkit.WebSettings.LayoutAlgorithm);
25195+
method public synchronized void setLayoutAlgorithm(android.webkit.WebSettings.LayoutAlgorithm);
2519625196
method public void setLightTouchEnabled(boolean);
2519725197
method public void setLoadWithOverviewMode(boolean);
2519825198
method public synchronized void setLoadsImagesAutomatically(boolean);
@@ -25227,12 +25227,12 @@ package android.webkit {
2522725227
field public static final int LOAD_NO_CACHE = 2; // 0x2
2522825228
}
2522925229

25230-
public static final deprecated class WebSettings.LayoutAlgorithm extends java.lang.Enum {
25230+
public static final class WebSettings.LayoutAlgorithm extends java.lang.Enum {
2523125231
method public static android.webkit.WebSettings.LayoutAlgorithm valueOf(java.lang.String);
2523225232
method public static final android.webkit.WebSettings.LayoutAlgorithm[] values();
2523325233
enum_constant public static final android.webkit.WebSettings.LayoutAlgorithm NARROW_COLUMNS;
2523425234
enum_constant public static final android.webkit.WebSettings.LayoutAlgorithm NORMAL;
25235-
enum_constant public static final android.webkit.WebSettings.LayoutAlgorithm SINGLE_COLUMN;
25235+
enum_constant public static final deprecated android.webkit.WebSettings.LayoutAlgorithm SINGLE_COLUMN;
2523625236
}
2523725237

2523825238
public static final class WebSettings.PluginState extends java.lang.Enum {

core/java/android/webkit/WebSettings.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,14 @@ public class WebSettings {
4242
* SINGLE_COLUMN moves all content into one column that is the width of the
4343
* view.
4444
* NARROW_COLUMNS makes all columns no wider than the screen if possible.
45-
* @deprecated This enum is now obsolete.
4645
*/
4746
// XXX: These must match LayoutAlgorithm in Settings.h in WebCore.
48-
@Deprecated
4947
public enum LayoutAlgorithm {
5048
NORMAL,
49+
/**
50+
* @deprecated This algorithm is now obsolete.
51+
*/
52+
@Deprecated
5153
SINGLE_COLUMN,
5254
NARROW_COLUMNS
5355
}
@@ -936,9 +938,7 @@ public synchronized boolean supportMultipleWindows() {
936938
* WebView.
937939
* @param l A LayoutAlgorithm enum specifying the algorithm to use.
938940
* @see WebSettings.LayoutAlgorithm
939-
* @deprecated This method is now obsolete.
940941
*/
941-
@Deprecated
942942
public synchronized void setLayoutAlgorithm(LayoutAlgorithm l) {
943943
// XXX: This will only be affective if libwebcore was built with
944944
// ANDROID_LAYOUT defined.
@@ -953,9 +953,7 @@ public synchronized void setLayoutAlgorithm(LayoutAlgorithm l) {
953953
* @return LayoutAlgorithm enum value describing the layout algorithm
954954
* being used.
955955
* @see WebSettings.LayoutAlgorithm
956-
* @deprecated This method is now obsolete.
957956
*/
958-
@Deprecated
959957
public synchronized LayoutAlgorithm getLayoutAlgorithm() {
960958
return mLayoutAlgorithm;
961959
}

0 commit comments

Comments
 (0)