diff --git a/app/src/main/java/eu/faircode/email/ActivityView.java b/app/src/main/java/eu/faircode/email/ActivityView.java index 2fa3b20e..fddbb09f 100644 --- a/app/src/main/java/eu/faircode/email/ActivityView.java +++ b/app/src/main/java/eu/faircode/email/ActivityView.java @@ -115,6 +115,9 @@ public class ActivityView extends ActivityBase implements FragmentManager.OnBack case R.string.menu_operations: onMenuOperations(); break; + case R.string.menu_privacy: + onMenuPrivacy(); + break; case R.string.menu_faq: onMenuFAQ(); break; @@ -155,6 +158,9 @@ public class ActivityView extends ActivityBase implements FragmentManager.OnBack if (PreferenceManager.getDefaultSharedPreferences(ActivityView.this).getBoolean("debug", false)) drawerArray.add(new DrawerItem(ActivityView.this, R.drawable.baseline_list_24, R.string.menu_operations)); + if (getIntentPrivacy().resolveActivity(getPackageManager()) != null) + drawerArray.add(new DrawerItem(ActivityView.this, R.drawable.baseline_account_box_24, R.string.menu_privacy)); + if (getIntentFAQ().resolveActivity(getPackageManager()) != null) drawerArray.add(new DrawerItem(ActivityView.this, R.drawable.baseline_question_answer_24, R.string.menu_faq)); @@ -379,6 +385,12 @@ public class ActivityView extends ActivityBase implements FragmentManager.OnBack } } + private Intent getIntentPrivacy() { + Intent intent = new Intent(Intent.ACTION_VIEW); + intent.setData(Uri.parse("https://email.faircode.eu/privacy/")); + return intent; + } + private Intent getIntentFAQ() { Intent intent = new Intent(Intent.ACTION_VIEW); intent.setData(Uri.parse("https://github.com/M66B/open-source-email/blob/master/FAQ.md")); @@ -409,6 +421,10 @@ public class ActivityView extends ActivityBase implements FragmentManager.OnBack fragmentTransaction.commit(); } + private void onMenuPrivacy() { + startActivity(getIntentPrivacy()); + } + private void onMenuFAQ() { startActivity(getIntentFAQ()); } diff --git a/app/src/main/res/drawable-hdpi/baseline_account_box_black_18.png b/app/src/main/res/drawable-hdpi/baseline_account_box_black_18.png new file mode 100755 index 00000000..e30fb098 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/baseline_account_box_black_18.png differ diff --git a/app/src/main/res/drawable-hdpi/baseline_account_box_black_24.png b/app/src/main/res/drawable-hdpi/baseline_account_box_black_24.png new file mode 100755 index 00000000..12bfa838 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/baseline_account_box_black_24.png differ diff --git a/app/src/main/res/drawable-hdpi/baseline_account_box_black_36.png b/app/src/main/res/drawable-hdpi/baseline_account_box_black_36.png new file mode 100755 index 00000000..cdd05ccd Binary files /dev/null and b/app/src/main/res/drawable-hdpi/baseline_account_box_black_36.png differ diff --git a/app/src/main/res/drawable-hdpi/baseline_account_box_black_48.png b/app/src/main/res/drawable-hdpi/baseline_account_box_black_48.png new file mode 100755 index 00000000..32499a4f Binary files /dev/null and b/app/src/main/res/drawable-hdpi/baseline_account_box_black_48.png differ diff --git a/app/src/main/res/drawable-hdpi/baseline_account_box_white_18.png b/app/src/main/res/drawable-hdpi/baseline_account_box_white_18.png new file mode 100755 index 00000000..06cd754c Binary files /dev/null and b/app/src/main/res/drawable-hdpi/baseline_account_box_white_18.png differ diff --git a/app/src/main/res/drawable-hdpi/baseline_account_box_white_24.png b/app/src/main/res/drawable-hdpi/baseline_account_box_white_24.png new file mode 100755 index 00000000..3b63f282 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/baseline_account_box_white_24.png differ diff --git a/app/src/main/res/drawable-hdpi/baseline_account_box_white_36.png b/app/src/main/res/drawable-hdpi/baseline_account_box_white_36.png new file mode 100755 index 00000000..7c10c17d Binary files /dev/null and b/app/src/main/res/drawable-hdpi/baseline_account_box_white_36.png differ diff --git a/app/src/main/res/drawable-hdpi/baseline_account_box_white_48.png b/app/src/main/res/drawable-hdpi/baseline_account_box_white_48.png new file mode 100755 index 00000000..bbb03992 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/baseline_account_box_white_48.png differ diff --git a/app/src/main/res/drawable-mdpi/baseline_account_box_black_18.png b/app/src/main/res/drawable-mdpi/baseline_account_box_black_18.png new file mode 100755 index 00000000..3e33d7ff Binary files /dev/null and b/app/src/main/res/drawable-mdpi/baseline_account_box_black_18.png differ diff --git a/app/src/main/res/drawable-mdpi/baseline_account_box_black_24.png b/app/src/main/res/drawable-mdpi/baseline_account_box_black_24.png new file mode 100755 index 00000000..b60968ae Binary files /dev/null and b/app/src/main/res/drawable-mdpi/baseline_account_box_black_24.png differ diff --git a/app/src/main/res/drawable-mdpi/baseline_account_box_black_36.png b/app/src/main/res/drawable-mdpi/baseline_account_box_black_36.png new file mode 100755 index 00000000..12bfa838 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/baseline_account_box_black_36.png differ diff --git a/app/src/main/res/drawable-mdpi/baseline_account_box_black_48.png b/app/src/main/res/drawable-mdpi/baseline_account_box_black_48.png new file mode 100755 index 00000000..6ef05bcb Binary files /dev/null and b/app/src/main/res/drawable-mdpi/baseline_account_box_black_48.png differ diff --git a/app/src/main/res/drawable-mdpi/baseline_account_box_white_18.png b/app/src/main/res/drawable-mdpi/baseline_account_box_white_18.png new file mode 100755 index 00000000..698ad343 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/baseline_account_box_white_18.png differ diff --git a/app/src/main/res/drawable-mdpi/baseline_account_box_white_24.png b/app/src/main/res/drawable-mdpi/baseline_account_box_white_24.png new file mode 100755 index 00000000..9515a944 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/baseline_account_box_white_24.png differ diff --git a/app/src/main/res/drawable-mdpi/baseline_account_box_white_36.png b/app/src/main/res/drawable-mdpi/baseline_account_box_white_36.png new file mode 100755 index 00000000..3b63f282 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/baseline_account_box_white_36.png differ diff --git a/app/src/main/res/drawable-mdpi/baseline_account_box_white_48.png b/app/src/main/res/drawable-mdpi/baseline_account_box_white_48.png new file mode 100755 index 00000000..8d4e45d9 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/baseline_account_box_white_48.png differ diff --git a/app/src/main/res/drawable-xhdpi/baseline_account_box_black_18.png b/app/src/main/res/drawable-xhdpi/baseline_account_box_black_18.png new file mode 100755 index 00000000..12bfa838 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/baseline_account_box_black_18.png differ diff --git a/app/src/main/res/drawable-xhdpi/baseline_account_box_black_24.png b/app/src/main/res/drawable-xhdpi/baseline_account_box_black_24.png new file mode 100755 index 00000000..6ef05bcb Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/baseline_account_box_black_24.png differ diff --git a/app/src/main/res/drawable-xhdpi/baseline_account_box_black_36.png b/app/src/main/res/drawable-xhdpi/baseline_account_box_black_36.png new file mode 100755 index 00000000..32499a4f Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/baseline_account_box_black_36.png differ diff --git a/app/src/main/res/drawable-xhdpi/baseline_account_box_black_48.png b/app/src/main/res/drawable-xhdpi/baseline_account_box_black_48.png new file mode 100755 index 00000000..02e3835e Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/baseline_account_box_black_48.png differ diff --git a/app/src/main/res/drawable-xhdpi/baseline_account_box_white_18.png b/app/src/main/res/drawable-xhdpi/baseline_account_box_white_18.png new file mode 100755 index 00000000..3b63f282 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/baseline_account_box_white_18.png differ diff --git a/app/src/main/res/drawable-xhdpi/baseline_account_box_white_24.png b/app/src/main/res/drawable-xhdpi/baseline_account_box_white_24.png new file mode 100755 index 00000000..8d4e45d9 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/baseline_account_box_white_24.png differ diff --git a/app/src/main/res/drawable-xhdpi/baseline_account_box_white_36.png b/app/src/main/res/drawable-xhdpi/baseline_account_box_white_36.png new file mode 100755 index 00000000..bbb03992 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/baseline_account_box_white_36.png differ diff --git a/app/src/main/res/drawable-xhdpi/baseline_account_box_white_48.png b/app/src/main/res/drawable-xhdpi/baseline_account_box_white_48.png new file mode 100755 index 00000000..8f31ced8 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/baseline_account_box_white_48.png differ diff --git a/app/src/main/res/drawable-xxhdpi/baseline_account_box_black_18.png b/app/src/main/res/drawable-xxhdpi/baseline_account_box_black_18.png new file mode 100755 index 00000000..cdd05ccd Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/baseline_account_box_black_18.png differ diff --git a/app/src/main/res/drawable-xxhdpi/baseline_account_box_black_24.png b/app/src/main/res/drawable-xxhdpi/baseline_account_box_black_24.png new file mode 100755 index 00000000..32499a4f Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/baseline_account_box_black_24.png differ diff --git a/app/src/main/res/drawable-xxhdpi/baseline_account_box_black_36.png b/app/src/main/res/drawable-xxhdpi/baseline_account_box_black_36.png new file mode 100755 index 00000000..ad831c34 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/baseline_account_box_black_36.png differ diff --git a/app/src/main/res/drawable-xxhdpi/baseline_account_box_black_48.png b/app/src/main/res/drawable-xxhdpi/baseline_account_box_black_48.png new file mode 100755 index 00000000..e381a6d1 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/baseline_account_box_black_48.png differ diff --git a/app/src/main/res/drawable-xxhdpi/baseline_account_box_white_18.png b/app/src/main/res/drawable-xxhdpi/baseline_account_box_white_18.png new file mode 100755 index 00000000..7c10c17d Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/baseline_account_box_white_18.png differ diff --git a/app/src/main/res/drawable-xxhdpi/baseline_account_box_white_24.png b/app/src/main/res/drawable-xxhdpi/baseline_account_box_white_24.png new file mode 100755 index 00000000..bbb03992 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/baseline_account_box_white_24.png differ diff --git a/app/src/main/res/drawable-xxhdpi/baseline_account_box_white_36.png b/app/src/main/res/drawable-xxhdpi/baseline_account_box_white_36.png new file mode 100755 index 00000000..aab8297e Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/baseline_account_box_white_36.png differ diff --git a/app/src/main/res/drawable-xxhdpi/baseline_account_box_white_48.png b/app/src/main/res/drawable-xxhdpi/baseline_account_box_white_48.png new file mode 100755 index 00000000..e24bb280 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/baseline_account_box_white_48.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/baseline_account_box_black_18.png b/app/src/main/res/drawable-xxxhdpi/baseline_account_box_black_18.png new file mode 100755 index 00000000..32499a4f Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/baseline_account_box_black_18.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/baseline_account_box_black_24.png b/app/src/main/res/drawable-xxxhdpi/baseline_account_box_black_24.png new file mode 100755 index 00000000..02e3835e Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/baseline_account_box_black_24.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/baseline_account_box_black_36.png b/app/src/main/res/drawable-xxxhdpi/baseline_account_box_black_36.png new file mode 100755 index 00000000..e381a6d1 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/baseline_account_box_black_36.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/baseline_account_box_black_48.png b/app/src/main/res/drawable-xxxhdpi/baseline_account_box_black_48.png new file mode 100755 index 00000000..26e798f9 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/baseline_account_box_black_48.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/baseline_account_box_white_18.png b/app/src/main/res/drawable-xxxhdpi/baseline_account_box_white_18.png new file mode 100755 index 00000000..bbb03992 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/baseline_account_box_white_18.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/baseline_account_box_white_24.png b/app/src/main/res/drawable-xxxhdpi/baseline_account_box_white_24.png new file mode 100755 index 00000000..8f31ced8 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/baseline_account_box_white_24.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/baseline_account_box_white_36.png b/app/src/main/res/drawable-xxxhdpi/baseline_account_box_white_36.png new file mode 100755 index 00000000..e24bb280 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/baseline_account_box_white_36.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/baseline_account_box_white_48.png b/app/src/main/res/drawable-xxxhdpi/baseline_account_box_white_48.png new file mode 100755 index 00000000..605dda2e Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/baseline_account_box_white_48.png differ diff --git a/app/src/main/res/drawable/baseline_account_box_24.xml b/app/src/main/res/drawable/baseline_account_box_24.xml new file mode 100755 index 00000000..eeec2274 --- /dev/null +++ b/app/src/main/res/drawable/baseline_account_box_24.xml @@ -0,0 +1,10 @@ + + + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 319155cf..f3ebe637 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -32,8 +32,9 @@ \'%1$s\' failed Setup - Operations - FAQ + Pending operations + Privacy policy + Frequently asked questions About End-user license agreement