File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
lib/java/com/google/android/material Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -180,8 +180,8 @@ public View onCreateTextInputView(
180180 final TextInputLayout endTextInput = root .findViewById (R .id .mtrl_picker_text_input_range_end );
181181 EditText startEditText = startTextInput .getEditText ();
182182 EditText endEditText = endTextInput .getEditText ();
183- // The date inputType for Samsung does not include any separator characters
184- if (ManufacturerUtils .isSamsungDevice ()) {
183+ // The date inputType for LG does not include any separator characters
184+ if (ManufacturerUtils .isLGDevice ()) {
185185 // Using the URI variation places the '/' and '.' in more prominent positions
186186 startEditText .setInputType (InputType .TYPE_CLASS_TEXT | InputType .TYPE_TEXT_VARIATION_URI );
187187 endEditText .setInputType (InputType .TYPE_CLASS_TEXT | InputType .TYPE_TEXT_VARIATION_URI );
Original file line number Diff line number Diff line change @@ -102,8 +102,8 @@ public View onCreateTextInputView(
102102
103103 TextInputLayout dateTextInput = root .findViewById (R .id .mtrl_picker_text_input_date );
104104 EditText dateEditText = dateTextInput .getEditText ();
105- // The date inputType for Samsung does not include any separator characters
106- if (ManufacturerUtils .isSamsungDevice ()) {
105+ // The date inputType for LG does not include any separator characters
106+ if (ManufacturerUtils .isLGDevice ()) {
107107 // Using the URI variation places the '/' and '.' in more prominent positions
108108 dateEditText .setInputType (InputType .TYPE_CLASS_TEXT | InputType .TYPE_TEXT_VARIATION_URI );
109109 }
Original file line number Diff line number Diff line change @@ -27,13 +27,13 @@ public class ManufacturerUtils {
2727
2828 private ManufacturerUtils () {}
2929
30- /** Returns true if the device manufacturer is Samsung. */
31- public static boolean isSamsungDevice () {
32- return Build .MANUFACTURER .equalsIgnoreCase ("samsung" );
33- }
34-
3530 /** Returns true if the device manufacturer is Meizu. */
3631 public static boolean isMeizuDevice () {
3732 return Build .MANUFACTURER .equalsIgnoreCase ("meizu" );
3833 }
34+
35+ /** Returns true if the device manufacturer is LG. */
36+ public static boolean isLGDevice () {
37+ return Build .MANUFACTURER .equalsIgnoreCase ("lg" );
38+ }
3939}
You can’t perform that action at this time.
0 commit comments