fix : 修復 註冊也崩潰, 添加默認值

This commit is contained in:
eggmanQQQ
2024-12-18 21:31:27 +08:00
parent 3586905e9c
commit 712087dfaa
2 changed files with 2 additions and 1 deletions

View File

@@ -163,7 +163,7 @@ public class AddUserInfoFragment extends BaseFragment
switch (v.getId()) {
case R.id.ok_btn:
if (tvNick.getText() != null) {
if (tvNick.getText() == null) {
toast(ResUtil.getString(R.string.login_fragment_adduserinfofragment_01));
return;
}

View File

@@ -112,6 +112,7 @@
android:hint="@string/please_input_name"
android:lines="1"
android:maxLength="8"
android:text=""
android:paddingStart="@dimen/dp_24"
android:paddingEnd="0dp"
android:singleLine="true"