[fix]修改测试程序中文冒号转英文冒号
This commit is contained in:
@@ -322,7 +322,13 @@ public class MainActivity extends BaseActivity implements OnAdasListener, OnAdas
|
||||
if (TextUtils.isEmpty(s)) {
|
||||
Constants.delIPCIp(MainActivity.this);
|
||||
} else {
|
||||
Constants.setIPCIp(MainActivity.this, s.toString());
|
||||
String str = s.toString();
|
||||
if (str.contains(":")) {
|
||||
str = str.replace(":", ":");
|
||||
etIp.setText(str);
|
||||
etIp.setSelection(str.length());
|
||||
}
|
||||
Constants.setIPCIp(MainActivity.this, str);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -207,7 +207,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:digits="0123456789.:"
|
||||
android:digits="0123456789.::"
|
||||
android:gravity="right|center_vertical"
|
||||
android:hint="IP地址"
|
||||
android:imeOptions="flagNoExtractUi"
|
||||
|
||||
Reference in New Issue
Block a user