mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-29 17:11:12 +01:00
Add report issue to nav menu in beta releases
This commit is contained in:
@@ -302,6 +302,15 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
||||
}
|
||||
}));
|
||||
|
||||
if (BuildConfig.DEBUG && Helper.getIntentIssue(this).resolveActivity(pm) != null)
|
||||
extra.add(new NavMenuItem(R.drawable.baseline_warning_24, R.string.menu_issue, new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
drawerLayout.closeDrawer(drawerContainer);
|
||||
onMenuIssue();
|
||||
}
|
||||
}));
|
||||
|
||||
if (Helper.getIntentPrivacy().resolveActivity(pm) != null)
|
||||
extra.add(new NavMenuItem(R.drawable.baseline_account_box_24, R.string.menu_privacy, new Runnable() {
|
||||
@Override
|
||||
@@ -938,6 +947,10 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
||||
Helper.view(this, this, Helper.getIntentFAQ());
|
||||
}
|
||||
|
||||
private void onMenuIssue() {
|
||||
startActivity(Helper.getIntentIssue(this));
|
||||
}
|
||||
|
||||
private void onMenuPrivacy() {
|
||||
Helper.view(this, this, Helper.getIntentPrivacy());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user