From 098133da2faf0bcd12ffa7edb8f2b89e25f71a44 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 30 Jun 2021 10:02:09 +0200 Subject: [PATCH] Removed quick setup help --- .../java/eu/faircode/email/FragmentGmail.java | 27 ------------------- .../java/eu/faircode/email/FragmentOAuth.java | 27 ------------------- .../eu/faircode/email/FragmentQuickSetup.java | 27 ------------------- app/src/main/res/menu/menu_quick_setup.xml | 9 ------- 4 files changed, 90 deletions(-) delete mode 100644 app/src/main/res/menu/menu_quick_setup.xml diff --git a/app/src/main/java/eu/faircode/email/FragmentGmail.java b/app/src/main/java/eu/faircode/email/FragmentGmail.java index 6b46679030..d87c4769b9 100644 --- a/app/src/main/java/eu/faircode/email/FragmentGmail.java +++ b/app/src/main/java/eu/faircode/email/FragmentGmail.java @@ -37,9 +37,6 @@ import android.os.Bundle; import android.provider.ContactsContract; import android.text.TextUtils; import android.view.LayoutInflater; -import android.view.Menu; -import android.view.MenuInflater; -import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; import android.widget.Button; @@ -195,30 +192,6 @@ public class FragmentGmail extends FragmentBase { return view; } - @Override - public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { - inflater.inflate(R.menu.menu_quick_setup, menu); - super.onCreateOptionsMenu(menu, inflater); - } - - @Override - public boolean onOptionsItemSelected(MenuItem item) { - if (item.getItemId() == R.id.menu_help) { - onMenuHelp(); - return true; - } - return super.onOptionsItemSelected(item); - } - - private void onMenuHelp() { - Bundle args = new Bundle(); - args.putString("name", "SETUP.md"); - - FragmentDialogMarkdown fragment = new FragmentDialogMarkdown(); - fragment.setArguments(args); - fragment.show(getChildFragmentManager(), "help"); - } - @Override public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { boolean granted = true; diff --git a/app/src/main/java/eu/faircode/email/FragmentOAuth.java b/app/src/main/java/eu/faircode/email/FragmentOAuth.java index e12afd689a..3c33b61da3 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOAuth.java +++ b/app/src/main/java/eu/faircode/email/FragmentOAuth.java @@ -35,9 +35,6 @@ import android.text.TextUtils; import android.util.Base64; import android.util.Pair; import android.view.LayoutInflater; -import android.view.Menu; -import android.view.MenuInflater; -import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; import android.widget.Button; @@ -193,30 +190,6 @@ public class FragmentOAuth extends FragmentBase { return view; } - @Override - public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { - inflater.inflate(R.menu.menu_quick_setup, menu); - super.onCreateOptionsMenu(menu, inflater); - } - - @Override - public boolean onOptionsItemSelected(MenuItem item) { - if (item.getItemId() == R.id.menu_help) { - onMenuHelp(); - return true; - } - return super.onOptionsItemSelected(item); - } - - private void onMenuHelp() { - Bundle args = new Bundle(); - args.putString("name", "SETUP.md"); - - FragmentDialogMarkdown fragment = new FragmentDialogMarkdown(); - fragment.setArguments(args); - fragment.show(getChildFragmentManager(), "help"); - } - @Override public void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); diff --git a/app/src/main/java/eu/faircode/email/FragmentQuickSetup.java b/app/src/main/java/eu/faircode/email/FragmentQuickSetup.java index 7fb8b09aac..d39df7ba69 100644 --- a/app/src/main/java/eu/faircode/email/FragmentQuickSetup.java +++ b/app/src/main/java/eu/faircode/email/FragmentQuickSetup.java @@ -32,9 +32,6 @@ import android.text.TextWatcher; import android.text.method.LinkMovementMethod; import android.view.KeyEvent; import android.view.LayoutInflater; -import android.view.Menu; -import android.view.MenuInflater; -import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; import android.view.inputmethod.EditorInfo; @@ -211,30 +208,6 @@ public class FragmentQuickSetup extends FragmentBase { return view; } - @Override - public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { - inflater.inflate(R.menu.menu_quick_setup, menu); - super.onCreateOptionsMenu(menu, inflater); - } - - @Override - public boolean onOptionsItemSelected(MenuItem item) { - if (item.getItemId() == R.id.menu_help) { - onMenuHelp(); - return true; - } - return super.onOptionsItemSelected(item); - } - - private void onMenuHelp() { - Bundle args = new Bundle(); - args.putString("name", "SETUP.md"); - - FragmentDialogMarkdown fragment = new FragmentDialogMarkdown(); - fragment.setArguments(args); - fragment.show(getChildFragmentManager(), "help"); - } - private void onSave(boolean check) { Bundle args = new Bundle(); args.putString("name", etName.getText().toString().trim()); diff --git a/app/src/main/res/menu/menu_quick_setup.xml b/app/src/main/res/menu/menu_quick_setup.xml deleted file mode 100644 index fcda36dd97..0000000000 --- a/app/src/main/res/menu/menu_quick_setup.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - -