From 99f641c1cd54f7916c9e07671fbf0a4f65f8bb76 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 4 Apr 2019 15:41:08 +0200 Subject: [PATCH] Report question or problem --- .../java/eu/faircode/email/ActivityView.java | 18 ++++++++++++++++++ app/src/main/res/values/strings.xml | 4 ++++ 2 files changed, 22 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/ActivityView.java b/app/src/main/java/eu/faircode/email/ActivityView.java index 2cc2b9d688..3e3f12e15e 100644 --- a/app/src/main/java/eu/faircode/email/ActivityView.java +++ b/app/src/main/java/eu/faircode/email/ActivityView.java @@ -967,6 +967,24 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB } private void onMenuIssue() { + new DialogBuilderLifecycle(this, this) + .setMessage(R.string.title_issue_type) + .setPositiveButton(R.string.title_issue_question, new DialogInterface.OnClickListener() { + @Override + public void onClick(DialogInterface dialog, int which) { + Helper.view(ActivityView.this, ActivityView.this, Helper.getIntentFAQ()); + } + }) + .setNegativeButton(R.string.title_issue_problem, new DialogInterface.OnClickListener() { + @Override + public void onClick(DialogInterface dialog, int which) { + onReportIssue(); + } + }) + .show(); + } + + void onReportIssue() { try { String version = BuildConfig.VERSION_NAME + "/" + (Helper.hasValidFingerprint(this) ? "1" : "3") + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index d501283070..3f0947da57 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -81,6 +81,10 @@ Rate this app Other apps + Do you have a question or problem? + Question + Problem + Welcome End-user license agreement I agree