JLChen
2020-01-17 c1863db0158fb6c2a1cd96686d514c98c1073937
Crabtree/SmartHome/UI/SimpleControl/Phone/Room/UserDeviceListPage.cs
@@ -461,7 +461,9 @@
                                dialogView.AddChidren (etDeviceName);
                                etDeviceName.TextChangeEventHandler += (sender, e) => {
                                    byte [] remakeBytes = CommonPage.MyEncodingGB2312.GetBytes (etDeviceName.Text.Trim ());
                                    if (remakeBytes.Length > 20) {
                                        etDeviceName.Text = CommonPage.MyEncodingGB2312.GetString (remakeBytes, 0, 20);
                                        new Alert ("", "Remark length exceeded the limit. ", "Close").Show ();
                                    }
                                };