|
@ -115,6 +115,9 @@ public class ActivityView extends ActivityBase implements FragmentManager.OnBack |
|
|
case R.string.menu_operations: |
|
|
case R.string.menu_operations: |
|
|
onMenuOperations(); |
|
|
onMenuOperations(); |
|
|
break; |
|
|
break; |
|
|
|
|
|
case R.string.menu_privacy: |
|
|
|
|
|
onMenuPrivacy(); |
|
|
|
|
|
break; |
|
|
case R.string.menu_faq: |
|
|
case R.string.menu_faq: |
|
|
onMenuFAQ(); |
|
|
onMenuFAQ(); |
|
|
break; |
|
|
break; |
|
@ -155,6 +158,9 @@ public class ActivityView extends ActivityBase implements FragmentManager.OnBack |
|
|
if (PreferenceManager.getDefaultSharedPreferences(ActivityView.this).getBoolean("debug", false)) |
|
|
if (PreferenceManager.getDefaultSharedPreferences(ActivityView.this).getBoolean("debug", false)) |
|
|
drawerArray.add(new DrawerItem(ActivityView.this, R.drawable.baseline_list_24, R.string.menu_operations)); |
|
|
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) |
|
|
if (getIntentFAQ().resolveActivity(getPackageManager()) != null) |
|
|
drawerArray.add(new DrawerItem(ActivityView.this, R.drawable.baseline_question_answer_24, R.string.menu_faq)); |
|
|
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() { |
|
|
private Intent getIntentFAQ() { |
|
|
Intent intent = new Intent(Intent.ACTION_VIEW); |
|
|
Intent intent = new Intent(Intent.ACTION_VIEW); |
|
|
intent.setData(Uri.parse("https://github.com/M66B/open-source-email/blob/master/FAQ.md")); |
|
|
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(); |
|
|
fragmentTransaction.commit(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void onMenuPrivacy() { |
|
|
|
|
|
startActivity(getIntentPrivacy()); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
private void onMenuFAQ() { |
|
|
private void onMenuFAQ() { |
|
|
startActivity(getIntentFAQ()); |
|
|
startActivity(getIntentFAQ()); |
|
|
} |
|
|
} |
|
|