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

Commit 0962262f authored by Felipe Leme's avatar Felipe Leme
Browse files

Created SaveInfo types for email and username.

Bug: 35707731
Test: LoginActivityTest#testCustomizedSaveUsername
Test: LoginActivityTest#testCustomizedSaveEmailAddress
Change-Id: I3598c64e4f6bb9ceff544c3994d6cdeebd760a85
parent 0bbde28d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -37066,8 +37066,10 @@ package android.service.autofill {
    field public static final android.os.Parcelable.Creator<android.service.autofill.SaveInfo> CREATOR;
    field public static final int SAVE_DATA_TYPE_ADDRESS = 2; // 0x2
    field public static final int SAVE_DATA_TYPE_CREDIT_CARD = 3; // 0x3
    field public static final int SAVE_DATA_TYPE_EMAIL_ADDRESS = 5; // 0x5
    field public static final int SAVE_DATA_TYPE_GENERIC = 0; // 0x0
    field public static final int SAVE_DATA_TYPE_PASSWORD = 1; // 0x1
    field public static final int SAVE_DATA_TYPE_USERNAME = 4; // 0x4
  }
  public static final class SaveInfo.Builder {
+2 −0
Original line number Diff line number Diff line
@@ -40102,8 +40102,10 @@ package android.service.autofill {
    field public static final android.os.Parcelable.Creator<android.service.autofill.SaveInfo> CREATOR;
    field public static final int SAVE_DATA_TYPE_ADDRESS = 2; // 0x2
    field public static final int SAVE_DATA_TYPE_CREDIT_CARD = 3; // 0x3
    field public static final int SAVE_DATA_TYPE_EMAIL_ADDRESS = 5; // 0x5
    field public static final int SAVE_DATA_TYPE_GENERIC = 0; // 0x0
    field public static final int SAVE_DATA_TYPE_PASSWORD = 1; // 0x1
    field public static final int SAVE_DATA_TYPE_USERNAME = 4; // 0x4
  }
  public static final class SaveInfo.Builder {
+2 −0
Original line number Diff line number Diff line
@@ -37224,8 +37224,10 @@ package android.service.autofill {
    field public static final android.os.Parcelable.Creator<android.service.autofill.SaveInfo> CREATOR;
    field public static final int SAVE_DATA_TYPE_ADDRESS = 2; // 0x2
    field public static final int SAVE_DATA_TYPE_CREDIT_CARD = 3; // 0x3
    field public static final int SAVE_DATA_TYPE_EMAIL_ADDRESS = 5; // 0x5
    field public static final int SAVE_DATA_TYPE_GENERIC = 0; // 0x0
    field public static final int SAVE_DATA_TYPE_PASSWORD = 1; // 0x1
    field public static final int SAVE_DATA_TYPE_USERNAME = 4; // 0x4
  }
  public static final class SaveInfo.Builder {
+12 −0
Original line number Diff line number Diff line
@@ -130,6 +130,16 @@ public final class SaveInfo implements Parcelable {
     */
    public static final int SAVE_DATA_TYPE_CREDIT_CARD = 3;

    /**
     * Type used when the {@link FillResponse} represents just an username, without a password.
     */
    public static final int SAVE_DATA_TYPE_USERNAME = 4;

    /**
     * Type used when the {@link FillResponse} represents just an email address, without a password.
     */
    public static final int SAVE_DATA_TYPE_EMAIL_ADDRESS = 5;

    private final @SaveDataType int mType;
    private final CharSequence mNegativeActionTitle;
    private final IntentSender mNegativeActionListener;
@@ -223,6 +233,8 @@ public final class SaveInfo implements Parcelable {
                case SAVE_DATA_TYPE_PASSWORD:
                case SAVE_DATA_TYPE_ADDRESS:
                case SAVE_DATA_TYPE_CREDIT_CARD:
                case SAVE_DATA_TYPE_USERNAME:
                case SAVE_DATA_TYPE_EMAIL_ADDRESS:
                    mType = type;
                    break;
                default:
+4 −0
Original line number Diff line number Diff line
@@ -4600,6 +4600,10 @@
    <string name="autofill_save_type_address">address</string>
    <!-- Label for the type of data being saved for autofill when it represents a credit card [CHAR LIMIT=NONE] -->
    <string name="autofill_save_type_credit_card">credit card</string>
    <!-- Label for the type of data being saved for autofill when it represents an username [CHAR LIMIT=NONE] -->
    <string name="autofill_save_type_username">username</string>
    <!-- Label for the type of data being saved for autofill when it represents an email address [CHAR LIMIT=NONE] -->
    <string name="autofill_save_type_email_address">email address</string>

    <!-- Primary ETWS (Earthquake and Tsunami Warning System) default message for earthquake -->
    <string name="etws_primary_default_message_earthquake">Stay calm and seek shelter nearby.</string>
Loading