summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--api/16.txt2
-rw-r--r--api/current.txt2
-rwxr-xr-xcore/java/android/webkit/GeolocationPermissions.java10
-rw-r--r--core/java/android/webkit/WebStorage.java10
4 files changed, 20 insertions, 4 deletions
diff --git a/api/16.txt b/api/16.txt
index aa23b4d..de99eee 100644
--- a/api/16.txt
+++ b/api/16.txt
@@ -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);