From a7b30f28e8554128f661d90f9347eeafcb8226b3 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 16 Nov 2019 10:04:05 +0100 Subject: [PATCH] Moved ActiveSync to the wizard menu --- .../java/eu/faircode/email/FragmentAccount.java | 10 ---------- .../java/eu/faircode/email/FragmentSetup.java | 6 +++++- app/src/main/res/layout/fragment_account.xml | 15 +-------------- app/src/main/res/values/strings.xml | 2 +- 4 files changed, 7 insertions(+), 26 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentAccount.java b/app/src/main/java/eu/faircode/email/FragmentAccount.java index d12bf540e2..abea3b2a86 100644 --- a/app/src/main/java/eu/faircode/email/FragmentAccount.java +++ b/app/src/main/java/eu/faircode/email/FragmentAccount.java @@ -79,7 +79,6 @@ public class FragmentAccount extends FragmentBase { private Button btnAutoConfig; private ContentLoadingProgressBar pbAutoConfig; - private TextView tvActiveSyncSupport; private EditText etHost; private RadioGroup rgEncryption; private CheckBox cbInsecure; @@ -182,7 +181,6 @@ public class FragmentAccount extends FragmentBase { btnAutoConfig = view.findViewById(R.id.btnAutoConfig); pbAutoConfig = view.findViewById(R.id.pbAutoConfig); - tvActiveSyncSupport = view.findViewById(R.id.tvActiveSyncSupport); etHost = view.findViewById(R.id.etHost); etPort = view.findViewById(R.id.etPort); rgEncryption = view.findViewById(R.id.rgEncryption); @@ -283,14 +281,6 @@ public class FragmentAccount extends FragmentBase { } }); - tvActiveSyncSupport.setPaintFlags(tvActiveSyncSupport.getPaintFlags() | Paint.UNDERLINE_TEXT_FLAG); - tvActiveSyncSupport.setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View view) { - Helper.viewFAQ(getContext(), 133); - } - }); - btnAutoConfig.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { diff --git a/app/src/main/java/eu/faircode/email/FragmentSetup.java b/app/src/main/java/eu/faircode/email/FragmentSetup.java index 307e542886..f8058653d1 100644 --- a/app/src/main/java/eu/faircode/email/FragmentSetup.java +++ b/app/src/main/java/eu/faircode/email/FragmentSetup.java @@ -167,7 +167,8 @@ public class FragmentSetup extends FragmentBase { popupMenu.getMenu().add(Menu.NONE, R.string.title_setup_gmail, 1, R.string.title_setup_gmail); //popupMenu.getMenu().add(Menu.NONE, R.string.title_setup_outlook, 2, R.string.title_setup_outlook); - popupMenu.getMenu().add(Menu.NONE, R.string.title_setup_other, 3, R.string.title_setup_other); + popupMenu.getMenu().add(Menu.NONE, R.string.title_setup_activesync, 3, R.string.title_setup_activesync); + popupMenu.getMenu().add(Menu.NONE, R.string.title_setup_other, 4, R.string.title_setup_other); popupMenu.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() { @Override @@ -183,6 +184,9 @@ public class FragmentSetup extends FragmentBase { case R.string.title_setup_outlook: lbm.sendBroadcast(new Intent(ActivitySetup.ACTION_QUICK_OUTLOOK)); return true; + case R.string.title_setup_activesync: + Helper.viewFAQ(getContext(), 133); + return true; case R.string.title_setup_other: lbm.sendBroadcast(new Intent(ActivitySetup.ACTION_QUICK_SETUP)); return true; diff --git a/app/src/main/res/layout/fragment_account.xml b/app/src/main/res/layout/fragment_account.xml index 2a68c01c07..4f90c990ec 100644 --- a/app/src/main/res/layout/fragment_account.xml +++ b/app/src/main/res/layout/fragment_account.xml @@ -101,19 +101,6 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/btnAutoConfig" /> - - + app:layout_constraintTop_toBottomOf="@id/tvImap" /> Go \'back\' to go to the inbox Gmail Outlook + Exchange ActiveSync Other provider Authorizing Google accounts will work in official versions only because Android checks the app signature Please grant permissions to select an account and read your name @@ -473,7 +474,6 @@ Sign key: %1$s Last connected: %1$s The POP3 protocol supports downloading and deleting messages from the inbox only. POP3 cannot mark messages as read, move messages, etc. POP3 will use more battery power and data than IMAP. So, consider using the IMAP protocol whenever possible. - ActiveSync is not supported OAuth is not supported Review Long press for options, like copy to create alias identities