From b98287e68a5e937459ba0e92729a59ef858589ab Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 30 Mar 2019 18:34:53 +0100 Subject: [PATCH] Cleanup --- .../java/eu/faircode/email/FragmentAccount.java | 8 -------- app/src/main/res/layout/fragment_account.xml | 13 +------------ app/src/main/res/values/strings.xml | 1 - 3 files changed, 1 insertion(+), 21 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentAccount.java b/app/src/main/java/eu/faircode/email/FragmentAccount.java index 5c5b7bfc91..6560b65a8f 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 tvMove; private TextView tvUtf8; private ArrayAdapter adapter; @@ -196,7 +195,6 @@ public class FragmentAccount extends FragmentBase { pbCheck = view.findViewById(R.id.pbCheck); tvIdle = view.findViewById(R.id.tvIdle); - tvMove = view.findViewById(R.id.tvMove); tvUtf8 = view.findViewById(R.id.tvUtf8); spDrafts = view.findViewById(R.id.spDrafts); @@ -235,7 +233,6 @@ public class FragmentAccount extends FragmentBase { btnCheck.setVisibility(position > 0 ? View.VISIBLE : View.GONE); tvIdle.setVisibility(View.GONE); - tvMove.setVisibility(View.GONE); tvUtf8.setVisibility(View.GONE); Object tag = adapterView.getTag(); @@ -440,7 +437,6 @@ public class FragmentAccount extends FragmentBase { btnAdvanced.setVisibility(View.GONE); tvIdle.setVisibility(View.GONE); - tvMove.setVisibility(View.GONE); tvUtf8.setVisibility(View.GONE); btnCheck.setVisibility(View.GONE); @@ -518,7 +514,6 @@ public class FragmentAccount extends FragmentBase { Helper.setViewsEnabled(view, false); pbCheck.setVisibility(View.VISIBLE); tvIdle.setVisibility(View.GONE); - tvMove.setVisibility(View.GONE); tvUtf8.setVisibility(View.GONE); grpFolders.setVisibility(View.GONE); tvError.setVisibility(View.GONE); @@ -578,7 +573,6 @@ public class FragmentAccount extends FragmentBase { } result.idle = ((IMAPStore) istore).hasCapability("IDLE"); - result.move = ((IMAPStore) istore).hasCapability("MOVE"); boolean inbox = false; boolean archive = false; @@ -678,7 +672,6 @@ public class FragmentAccount extends FragmentBase { @Override protected void onExecuted(Bundle args, CheckResult result) { tvIdle.setVisibility(result.idle ? View.GONE : View.VISIBLE); - tvMove.setVisibility(result.move ? View.GONE : View.VISIBLE); tvUtf8.setVisibility(result.utf8 == null || result.utf8 ? View.GONE : View.VISIBLE); setFolders(result.folders, result.account); @@ -1447,7 +1440,6 @@ public class FragmentAccount extends FragmentBase { EntityAccount account; List folders; boolean idle; - boolean move; Boolean utf8; } } diff --git a/app/src/main/res/layout/fragment_account.xml b/app/src/main/res/layout/fragment_account.xml index 8453c402ab..af9c8d55b9 100644 --- a/app/src/main/res/layout/fragment_account.xml +++ b/app/src/main/res/layout/fragment_account.xml @@ -471,17 +471,6 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/btnCheck" /> - - + app:layout_constraintTop_toBottomOf="@+id/tvIdle" /> Inbox not found No primary account or no drafts folder This provider does not support push messages. This will delay reception of new messages and increase battery usage. - This provider does not support MOVE This provider does not support UTF-8 Synchronization errors since %1$s Synchronizing some folders failed