diff options
-rw-r--r-- | api/16.txt | 2 | ||||
-rw-r--r-- | api/current.txt | 2 | ||||
-rwxr-xr-x | core/java/android/webkit/GeolocationPermissions.java | 10 | ||||
-rw-r--r-- | core/java/android/webkit/WebStorage.java | 10 |
4 files changed, 20 insertions, 4 deletions
@@ -24839,7 +24839,6 @@ package android.webkit { } public final class GeolocationPermissions { - ctor public GeolocationPermissions(); method public void allow(java.lang.String); method public void clear(java.lang.String); method public void clearAll(); @@ -25129,7 +25128,6 @@ package android.webkit { } public final class WebStorage { - ctor public WebStorage(); method public void deleteAllData(); method public void deleteOrigin(java.lang.String); method public static android.webkit.WebStorage getInstance(); diff --git a/api/current.txt b/api/current.txt index b008711..24df97a 100644 --- a/api/current.txt +++ b/api/current.txt @@ -25492,7 +25492,6 @@ package android.webkit { } public final class GeolocationPermissions { - ctor public GeolocationPermissions(); method public void allow(java.lang.String); method public void clear(java.lang.String); method public void clearAll(); @@ -25782,7 +25781,6 @@ package android.webkit { } public final class WebStorage { - ctor public WebStorage(); method public void deleteAllData(); method public void deleteOrigin(java.lang.String); method public static android.webkit.WebStorage getInstance(); diff --git a/core/java/android/webkit/GeolocationPermissions.java b/core/java/android/webkit/GeolocationPermissions.java index 93eb082..1160d57 100755 --- a/core/java/android/webkit/GeolocationPermissions.java +++ b/core/java/android/webkit/GeolocationPermissions.java @@ -293,6 +293,16 @@ public final class GeolocationPermissions { postMessage(Message.obtain(null, CLEAR_ALL)); } + /** + * This class should not be instantiated directly, applications must only use + * {@link #getInstance()} to obtain the instance. + * Note this constructor was erroneously public and published in SDK levels prior to 16, but + * applications using it would receive a non-functional instance of this class (there was no + * way to call createHandler() and createUIHandler(), so it would not work). + * @hide + */ + public GeolocationPermissions() {} + // Native functions, run on the WebKit thread. private static native Set nativeGetOrigins(); private static native boolean nativeGetAllowed(String origin); diff --git a/core/java/android/webkit/WebStorage.java b/core/java/android/webkit/WebStorage.java index 2300c2e..3745258 100644 --- a/core/java/android/webkit/WebStorage.java +++ b/core/java/android/webkit/WebStorage.java @@ -418,6 +418,16 @@ public final class WebStorage { } } + /** + * This class should not be instantiated directly, applications must only use + * {@link #getInstance()} to obtain the instance. + * Note this constructor was erroneously public and published in SDK levels prior to 16, but + * applications using it would receive a non-functional instance of this class (there was no + * way to call createHandler() and createUIHandler(), so it would not work). + * @hide + */ + public WebStorage() {} + // Native functions private static native Set nativeGetOrigins(); private static native long nativeGetUsageForOrigin(String origin); |