From 3f4c9d662559f93ef92bd0eeb01e5c0c046189fc Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 5 Jun 2021 11:03:04 +0200 Subject: [PATCH] Removed UTF8 warning --- .../java/eu/faircode/email/FragmentAccount.java | 6 ------ app/src/main/res/layout/fragment_account.xml | 13 +------------ 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentAccount.java b/app/src/main/java/eu/faircode/email/FragmentAccount.java index cc7aa27fe1..4eaa600429 100644 --- a/app/src/main/java/eu/faircode/email/FragmentAccount.java +++ b/app/src/main/java/eu/faircode/email/FragmentAccount.java @@ -119,7 +119,6 @@ public class FragmentAccount extends FragmentBase { private Button btnCheck; private ContentLoadingProgressBar pbCheck; private TextView tvIdle; - private TextView tvUtf8; private ArrayAdapter adapter; private Spinner spDrafts; @@ -226,7 +225,6 @@ public class FragmentAccount extends FragmentBase { pbCheck = view.findViewById(R.id.pbCheck); tvIdle = view.findViewById(R.id.tvIdle); - tvUtf8 = view.findViewById(R.id.tvUtf8); spDrafts = view.findViewById(R.id.spDrafts); spSent = view.findViewById(R.id.spSent); @@ -273,7 +271,6 @@ public class FragmentAccount extends FragmentBase { btnCheck.setVisibility(position > 0 ? View.VISIBLE : View.GONE); tvIdle.setVisibility(View.GONE); - tvUtf8.setVisibility(View.GONE); Object tag = adapterView.getTag(); if (tag != null && (Integer) tag == position) @@ -529,7 +526,6 @@ public class FragmentAccount extends FragmentBase { btnAdvanced.setVisibility(View.GONE); tvIdle.setVisibility(View.GONE); - tvUtf8.setVisibility(View.GONE); btnCheck.setVisibility(View.GONE); pbCheck.setVisibility(View.GONE); @@ -629,7 +625,6 @@ public class FragmentAccount extends FragmentBase { Helper.setViewsEnabled(view, false); pbCheck.setVisibility(View.VISIBLE); tvIdle.setVisibility(View.GONE); - tvUtf8.setVisibility(View.GONE); grpFolders.setVisibility(View.GONE); grpError.setVisibility(View.GONE); btnHelp.setVisibility(View.GONE); @@ -738,7 +733,6 @@ public class FragmentAccount extends FragmentBase { @Override protected void onExecuted(Bundle args, CheckResult result) { tvIdle.setVisibility(result.idle ? View.GONE : View.VISIBLE); - tvUtf8.setVisibility(result.utf8 == null || result.utf8 ? View.GONE : View.VISIBLE); if (!result.idle) etInterval.setText(Integer.toString(EntityAccount.DEFAULT_POLL_INTERVAL)); diff --git a/app/src/main/res/layout/fragment_account.xml b/app/src/main/res/layout/fragment_account.xml index 01f1f731f4..a0c9710c87 100644 --- a/app/src/main/res/layout/fragment_account.xml +++ b/app/src/main/res/layout/fragment_account.xml @@ -660,17 +660,6 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/btnCheck" /> - - + app:layout_constraintTop_toBottomOf="@id/tvIdle" />