Fix some issue with admins

This commit is contained in:
Thomas 2022-11-13 18:34:08 +01:00
parent 966b0bce43
commit 49333097cc
2 changed files with 2 additions and 2 deletions

View file

@ -238,7 +238,7 @@ public class AccountReportActivity extends BaseActivity {
} else {
binding.loginStatus.setText(getString(R.string.active));
}
if (accountAdmin.domain == null || accountAdmin.domain.equals("null")) {
if (accountAdmin.domain == null || accountAdmin.domain.trim().equalsIgnoreCase("null")) {
binding.warn.setVisibility(View.VISIBLE);
binding.emailUser.setVisibility(View.VISIBLE);
binding.commentLabel.setVisibility(View.VISIBLE);

View file

@ -326,7 +326,7 @@
app:barrierDirection="bottom"
app:constraint_referenced_ids="warn,disable,silence" />
<androidx.appcompat.widget.AppCompatCheckedTextView
<androidx.appcompat.widget.AppCompatCheckBox
android:id="@+id/email_user"
android:layout_width="match_parent"
android:layout_height="wrap_content"