OSDN Git Service

Tiny fix after updating the error reporting API
authorMikhail Naganov <mnaganov@google.com>
Thu, 14 May 2015 20:30:13 +0000 (13:30 -0700)
committerMikhail Naganov <mnaganov@google.com>
Thu, 14 May 2015 20:30:13 +0000 (13:30 -0700)
Temporarily make WebResourceError.getDescription() non-abstract
so the current version of WebView doesn't crash on it.

Bug: 2006400821063767
Change-Id: I15a1abb5df76263006d14eb589fe0076d5aac582

api/current.txt
api/system-current.txt
core/java/android/webkit/WebResourceError.java

index fbb6554..f93d223 100644 (file)
@@ -38808,7 +38808,7 @@ package android.webkit {
   }
 
   public abstract class WebResourceError {
-    method public abstract java.lang.CharSequence getDescription();
+    method public java.lang.CharSequence getDescription();
     method public abstract int getErrorCode();
   }
 
index 07fb2d7..c0d9769 100644 (file)
@@ -41132,7 +41132,7 @@ package android.webkit {
 
   public abstract class WebResourceError {
     ctor public WebResourceError();
-    method public abstract java.lang.CharSequence getDescription();
+    method public java.lang.CharSequence getDescription();
     method public abstract int getErrorCode();
   }
 
index 11f1b6f..90693f3 100644 (file)
@@ -36,8 +36,11 @@ public abstract class WebResourceError {
      * and thus can be used for communicating the problem to the user.
      *
      * @return The description of the error
+     *
+     * Will become abstract after updated WebView.apk will be submitted
+     * into the Android tree.
      */
-    public abstract CharSequence getDescription();
+    public CharSequence getDescription() { return ""; }
 
     /**
      * This class can not be subclassed by applications.