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

Commit 36914931 authored by Felipe Leme's avatar Felipe Leme Committed by android-build-merger
Browse files

Merge "Minor fixes on SaveInfo javadoc." into oc-mr1-dev

am: e72d655f

Change-Id: Ib3e6de8f42833f22bc50c949a0a346853485b130
parents 54e351b3 e72d655f
Loading
Loading
Loading
Loading
+9 −8
Original line number Diff line number Diff line
@@ -477,14 +477,15 @@ public final class SaveInfo implements Parcelable {
         * 16 digits, or 15 digits starting with 108:
         *
         * <pre class="prettyprint">
         * import android.service.autofill.Validators;
         * import static android.service.autofill.Validators.and;
         * import static android.service.autofill.Validators.or;
         *
         * Validator validator =
         *   and(
         *     new LuhnChecksumValidator(ccNumberId),
         *     or(
         *       new RegexValidator(ccNumberId, Pattern.compile(""^\\d{16}$")),
         *       new RegexValidator(ccNumberId, Pattern.compile(""^108\\d{12}$"))
         *       new RegexValidator(ccNumberId, Pattern.compile("^\\d{16}$")),
         *       new RegexValidator(ccNumberId, Pattern.compile("^108\\d{12}$"))
         *     )
         *   );
         * </pre>
@@ -504,14 +505,14 @@ public final class SaveInfo implements Parcelable {
         * 4 digits on each field:
         *
         * <pre class="prettyprint">
         * import android.service.autofill.Validators;
         * import static android.service.autofill.Validators.and;
         *
         * Validator validator =
         *   and(
         *     new RegexValidator(ccNumberId1, Pattern.compile(""^\\d{4}$")),
         *     new RegexValidator(ccNumberId2, Pattern.compile(""^\\d{4}$")),
         *     new RegexValidator(ccNumberId3, Pattern.compile(""^\\d{4}$")),
         *     new RegexValidator(ccNumberId4, Pattern.compile(""^\\d{4}$"))
         *     new RegexValidator(ccNumberId1, Pattern.compile("^\\d{4}$")),
         *     new RegexValidator(ccNumberId2, Pattern.compile("^\\d{4}$")),
         *     new RegexValidator(ccNumberId3, Pattern.compile("^\\d{4}$")),
         *     new RegexValidator(ccNumberId4, Pattern.compile("^\\d{4}$"))
         *   );
         * </pre>
         *