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
This commit is contained in:
Michael Bai
2022-01-26 15:11:57 -08:00
parent 4795ed77af
commit 62c1923abf
2 changed files with 7 additions and 7 deletions

View File

@@ -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);

View File

@@ -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;
}