mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-12 20:13:45 +02:00
Added help translate menu
This commit is contained in:
@@ -351,6 +351,15 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
||||
}
|
||||
}).setExternal(true));
|
||||
|
||||
extra.add(new NavMenuItem(R.drawable.baseline_language_24, R.string.menu_translate, new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
if (!drawerLayout.isLocked(drawerContainer))
|
||||
drawerLayout.closeDrawer(drawerContainer);
|
||||
onMenuTranslate();
|
||||
}
|
||||
}).setExternal(true));
|
||||
|
||||
if (Helper.getIntentIssue(this).resolveActivity(pm) != null)
|
||||
extra.add(new NavMenuItem(R.drawable.baseline_feedback_24, R.string.menu_issue, new Runnable() {
|
||||
@Override
|
||||
@@ -987,6 +996,10 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
||||
Helper.viewFAQ(this, 0);
|
||||
}
|
||||
|
||||
private void onMenuTranslate() {
|
||||
Helper.view(this, Uri.parse(Helper.CROWDIN_URI), true);
|
||||
}
|
||||
|
||||
private void onMenuIssue() {
|
||||
startActivity(Helper.getIntentIssue(this));
|
||||
}
|
||||
|
||||
@@ -138,6 +138,7 @@ public class Helper {
|
||||
static final String XDA_URI = "https://forum.xda-developers.com/showthread.php?t=3824168";
|
||||
static final String SUPPORT_URI = "https://contact.faircode.eu/?product=fairemailsupport";
|
||||
static final String TEST_URI = "https://play.google.com/apps/testing/" + BuildConfig.APPLICATION_ID;
|
||||
static final String CROWDIN_URI = "https://crowdin.com/project/open-source-email";
|
||||
|
||||
static ExecutorService getBackgroundExecutor(int threads, String name) {
|
||||
ThreadFactory factory = new ThreadFactory() {
|
||||
|
||||
Reference in New Issue
Block a user