From 49333097ccb438a2c27449ef92f7ec24211838e0 Mon Sep 17 00:00:00 2001 From: Thomas Date: Sun, 13 Nov 2022 18:34:08 +0100 Subject: [PATCH] Fix some issue with admins --- .../app/fedilab/android/activities/AccountReportActivity.java | 2 +- app/src/main/res/layout/activity_admin_report.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/app/fedilab/android/activities/AccountReportActivity.java b/app/src/main/java/app/fedilab/android/activities/AccountReportActivity.java index 1c80c320..6cbbe4fd 100644 --- a/app/src/main/java/app/fedilab/android/activities/AccountReportActivity.java +++ b/app/src/main/java/app/fedilab/android/activities/AccountReportActivity.java @@ -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); diff --git a/app/src/main/res/layout/activity_admin_report.xml b/app/src/main/res/layout/activity_admin_report.xml index 536b2ea7..1dd0f3f2 100644 --- a/app/src/main/res/layout/activity_admin_report.xml +++ b/app/src/main/res/layout/activity_admin_report.xml @@ -326,7 +326,7 @@ app:barrierDirection="bottom" app:constraint_referenced_ids="warn,disable,silence" /> -