fix some errors

This commit is contained in:
Tungstend 2022-11-08 19:28:41 +08:00
parent e266504076
commit e09ff00da5
2 changed files with 2 additions and 2 deletions

View File

@ -158,7 +158,7 @@ public class AccountUI extends FCLCommonUI implements View.OnClickListener {
accountListAdapter.notifyDataSetChanged();
}
name.setText(Accounts.getSelectedAccount() == null ? getContext().getString(R.string.account_state_no_account) : Accounts.getSelectedAccount().getUsername());
description.setVisibility(Accounts.getSelectedAccount() == null ? View.GONE : View.VISIBLE);
description.setVisibility(Accounts.getSelectedAccount() == null ? View.INVISIBLE : View.VISIBLE);
if (Accounts.getSelectedAccount() != null) {
String loginTypeName = Accounts.getLocalizedLoginTypeName(getContext(), Accounts.getAccountFactory(Accounts.getSelectedAccount()));
StringProperty subtitle = new SimpleStringProperty();

View File

@ -75,6 +75,6 @@
<string name="message_cancelled">操作已取消</string>
<string name="profile_shared">有目录</string>
<string name="profile_shared">有目录</string>
<string name="profile_private">私有目录</string>
</resources>