Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 219dfa4d authored by Steve Block's avatar Steve Block Committed by Android (Google) Code Review
Browse files

Improve JavaDoc for saved form data

Change-Id: I962df5678081920c30f8a2b1fe79389f702ef3fb
parent 53678e9d
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1258,8 +1258,10 @@ public class WebView extends AbsoluteLayout
    }

    /**
     * Makes sure that clearing the form data removes the adapter from the
     * currently focused textfield if there is one.
     * Removes the autocomplete popup from the currently focused form field, if
     * present. Note this only affects the display of the autocomplete popup,
     * it does not remove any saved form data from this WebView's store. To do
     * that, use {@link WebViewDatabase#clearFormData}.
     */
    public void clearFormData() {
        checkThread();
+6 −3
Original line number Diff line number Diff line
@@ -82,16 +82,19 @@ public class WebViewDatabase {
    }

    /**
     * Gets whether there is any previously-entered form data saved.
     * Gets whether there is any saved data for web forms.
     *
     * @return true if there is form data saved
     * @return whether there is any saved data for web forms
     * @see clearFormData
     */
    public boolean hasFormData() {
        throw new MustOverrideException();
    }

    /**
     * Clears any stored previously-entered form data.
     * Clears any saved data for web forms.
     *
     * @see hasFormData
     */
    public void clearFormData() {
        throw new MustOverrideException();