diff options
| author | 2022-01-26 15:11:57 -0800 | |
|---|---|---|
| committer | 2022-01-26 23:18:25 +0000 | |
| commit | 62c1923abf15f339ad5cb0ac4d2b7ee77f7076d1 (patch) | |
| tree | f09df960edfb47ce83da983e99ebb049032ccf88 | |
| parent | 4795ed77af9d50dc3d755a367f6af5868e8fb1d4 (diff) | |
WebView: Rename to set/isAlgorithmicDarkeningAllowed
Rename set/getAllowAlgorithmicDarkening to
set/isAlgorithmicDarkeningAllowed according to API council's
feedback in http://b/216369031
Javadoc change will be in a separated patch.
Bug: 214741472
Test: m, m api-stubs-docs-non-updatable-update-current-api
CTS-Coverage-Bug: 214742132
Change-Id: I959508a5b8e18e054d62cd092140aeeaf7f92231
| -rw-r--r-- | core/api/current.txt | 4 | ||||
| -rw-r--r-- | core/java/android/webkit/WebSettings.java | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/core/api/current.txt b/core/api/current.txt index 4fad67b3154e..7f672c1ed372 100644 --- a/core/api/current.txt +++ b/core/api/current.txt @@ -54097,7 +54097,6 @@ package android.webkit { public abstract class WebSettings { ctor public WebSettings(); method @Deprecated public abstract boolean enableSmoothTransition(); - method public boolean getAllowAlgorithmicDarkening(); method public abstract boolean getAllowContentAccess(); method public abstract boolean getAllowFileAccess(); method public abstract boolean getAllowFileAccessFromFileURLs(); @@ -54142,7 +54141,8 @@ package android.webkit { method public abstract int getTextZoom(); method public abstract boolean getUseWideViewPort(); method public abstract String getUserAgentString(); - method public void setAllowAlgorithmicDarkening(boolean); + method public boolean isAlgorithmicDarkeningAllowed(); + method public void setAlgorithmicDarkeningAllowed(boolean); method public abstract void setAllowContentAccess(boolean); method public abstract void setAllowFileAccess(boolean); method @Deprecated public abstract void setAllowFileAccessFromFileURLs(boolean); diff --git a/core/java/android/webkit/WebSettings.java b/core/java/android/webkit/WebSettings.java index f14c25140d10..280e7dfeac9a 100644 --- a/core/java/android/webkit/WebSettings.java +++ b/core/java/android/webkit/WebSettings.java @@ -141,7 +141,7 @@ public abstract class WebSettings { * and WebView to attempt to darken web content by algorithmic darkening when * appropriate. * - * Refer to {@link #setAllowAlgorithmicDarkening} for detail. + * Refer to {@link #setAlgorithmicDarkeningAllowed} for detail. * * @hide */ @@ -1558,7 +1558,7 @@ public abstract class WebSettings { * {@code targetSdkVersion} ≥ {@link android.os.Build.VERSION_CODES#TIRAMISU} * this API is a no-op and WebView will always use the dark style defined by web content * authors if the app's theme is dark. To customize the behavior, refer to - * {@link #setAllowAlgorithmicDarkening}. + * {@link #setAlgorithmicDarkeningAllowed}. */ public void setForceDark(@ForceDark int forceDark) { // Stub implementation to satisfy Roboelectrc shadows that don't override this yet. @@ -1604,7 +1604,7 @@ public abstract class WebSettings { * * @param allow allow algorithmic darkening or not. */ - public void setAllowAlgorithmicDarkening(boolean allow) { + public void setAlgorithmicDarkeningAllowed(boolean allow) { // Stub implementation to satisfy Roboelectrc shadows that don't override this yet. } @@ -1613,9 +1613,9 @@ public abstract class WebSettings { * The default is false. * * @return if the algorithmic darkening is allowed or not. - * @see #setAllowAlgorithmicDarkening + * @see #setAlgorithmicDarkeningAllowed */ - public boolean getAllowAlgorithmicDarkening() { + public boolean isAlgorithmicDarkeningAllowed() { // Stub implementation to satisfy Roboelectrc shadows that don't override this yet. return false; } |