You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 12939d7
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: engine/src/flutter/shell/platform/android/io/flutter/embedding/engine/systemchannels/TextInputChannel.java
+14-2Lines changed: 14 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -718,7 +718,7 @@ public Configuration(
718
718
* A text input type.
719
719
*
720
720
* <p>If the {@link #type} is {@link TextInputType#NUMBER}, this {@code InputType} also reports
721
-
* whether that number {@link #isSigned}and {@link #isDecimal}.
721
+
* whether that number {@link #isSigned}, {@link #isDecimal}, and {@link #isPassword}.
722
722
*/
723
723
publicstaticclassInputType {
724
724
@NonNull
@@ -727,17 +727,29 @@ public static InputType fromJson(@NonNull JSONObject json)
727
727
returnnewInputType(
728
728
TextInputType.fromValue(json.getString("name")),
729
729
json.optBoolean("signed", false),
730
-
json.optBoolean("decimal", false));
730
+
json.optBoolean("decimal", false),
731
+
json.optBoolean("password", false));
731
732
}
732
733
733
734
@NonNullpublicfinalTextInputTypetype;
734
735
publicfinalbooleanisSigned;
735
736
publicfinalbooleanisDecimal;
737
+
publicfinalbooleanisPassword;
736
738
739
+
/**
740
+
* Convenience overload equivalent to {@code new InputType(type, isSigned, isDecimal, false)}.
Copy file name to clipboardExpand all lines: engine/src/flutter/shell/platform/android/test/io/flutter/embedding/engine/systemchannels/TextInputChannelTest.java
0 commit comments