mirror of
https://github.com/pppscn/SmsForwarder
synced 2025-08-04 01:47:40 +08:00
code review
This commit is contained in:
parent
126b06cabf
commit
447b164759
@ -169,7 +169,6 @@ public class IPEditText extends LinearLayout {
|
|||||||
Edit4.setText(ip4);
|
Edit4.setText(ip4);
|
||||||
Edit4.setSelection(ip4.length());
|
Edit4.setSelection(ip4.length());
|
||||||
Toast.makeText(context, R.string.invalid_ip, Toast.LENGTH_LONG).show();
|
Toast.makeText(context, R.string.invalid_ip, Toast.LENGTH_LONG).show();
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,15 +9,6 @@
|
|||||||
android:paddingTop="16dp"
|
android:paddingTop="16dp"
|
||||||
android:weightSum="1">
|
android:weightSum="1">
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_weight="0.1"
|
|
||||||
android:gravity="start"
|
|
||||||
android:orientation="horizontal">
|
|
||||||
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
@ -62,8 +53,7 @@
|
|||||||
<com.idormy.sms.forwarder.view.IPEditText
|
<com.idormy.sms.forwarder.view.IPEditText
|
||||||
android:id="@+id/textServerIp"
|
android:id="@+id/textServerIp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent" />
|
||||||
android:layout_alignParentLeft="true" />
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<merge xmlns:android="http://schemas.android.com/apk/res/android">
|
<merge xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
|
||||||
<EditText
|
<EditText
|
||||||
android:id="@+id/edit1"
|
android:id="@+id/edit1"
|
||||||
@ -10,7 +11,9 @@
|
|||||||
android:inputType="number"
|
android:inputType="number"
|
||||||
android:digits="0123456789."
|
android:digits="0123456789."
|
||||||
android:maxLength="3"
|
android:maxLength="3"
|
||||||
android:text="" />
|
android:text=""
|
||||||
|
tools:ignore="LabelFor"
|
||||||
|
android:autofillHints="" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
@ -27,7 +30,9 @@
|
|||||||
android:inputType="number"
|
android:inputType="number"
|
||||||
android:digits="0123456789."
|
android:digits="0123456789."
|
||||||
android:maxLength="3"
|
android:maxLength="3"
|
||||||
android:text="" />
|
android:text=""
|
||||||
|
tools:ignore="LabelFor"
|
||||||
|
android:autofillHints="" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
@ -44,7 +49,9 @@
|
|||||||
android:inputType="number"
|
android:inputType="number"
|
||||||
android:digits="0123456789."
|
android:digits="0123456789."
|
||||||
android:maxLength="3"
|
android:maxLength="3"
|
||||||
android:text="" />
|
android:text=""
|
||||||
|
tools:ignore="LabelFor"
|
||||||
|
android:autofillHints="" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
@ -61,5 +68,7 @@
|
|||||||
android:inputType="number"
|
android:inputType="number"
|
||||||
android:digits="0123456789."
|
android:digits="0123456789."
|
||||||
android:maxLength="3"
|
android:maxLength="3"
|
||||||
android:text="" />
|
android:text=""
|
||||||
|
tools:ignore="LabelFor"
|
||||||
|
android:autofillHints="" />
|
||||||
</merge>
|
</merge>
|
Loading…
x
Reference in New Issue
Block a user