diff --git a/app/src/main/java/org/dystopia/email/ActivityView.java b/app/src/main/java/org/dystopia/email/ActivityView.java
index f982c0da..8eb9632a 100644
--- a/app/src/main/java/org/dystopia/email/ActivityView.java
+++ b/app/src/main/java/org/dystopia/email/ActivityView.java
@@ -106,7 +106,6 @@ public class ActivityView extends ActivityBase
static final int REQUEST_ERROR = 3;
static final int REQUEST_ATTACHMENT = 1;
- static final int REQUEST_INVITE = 2;
static final int REQUEST_DECRYPT = 3;
static final String ACTION_VIEW_MESSAGES = BuildConfig.APPLICATION_ID + ".VIEW_MESSAGES";
@@ -286,14 +285,12 @@ public class ActivityView extends ActivityBase
drawerArray.add(new DrawerItem(R.layout.item_drawer_separator));
- if (getIntentInvite().resolveActivity(getPackageManager()) != null) {
- drawerArray.add(
- new DrawerItem(
- ActivityView.this,
- R.layout.item_drawer,
- R.drawable.baseline_people_24,
- R.string.menu_invite));
- }
+ drawerArray.add(
+ new DrawerItem(
+ ActivityView.this,
+ R.layout.item_drawer,
+ R.drawable.baseline_share_24,
+ R.string.menu_invite));
drawerList.setAdapter(drawerArray);
}
@@ -716,18 +713,18 @@ public class ActivityView extends ActivityBase
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(
Uri.parse(
- "https://framagit.org/dystopia-project/simple-email/blob/8f7296ddc2275471d4190df1dd55dee4025a5114/docs/FAQ.md"));
+ "https://framagit.org/dystopia-project/simple-email/blob/HEAD/docs/FAQ.md"));
return intent;
}
private Intent getIntentInvite() {
- Intent intent = new Intent("com.google.android.gms.appinvite.ACTION_APP_INVITE");
- intent.setPackage("com.google.android.gms");
- intent.putExtra("com.google.android.gms.appinvite.TITLE", getString(R.string.menu_invite));
- intent.putExtra("com.google.android.gms.appinvite.MESSAGE", getString(R.string.title_try));
- intent.putExtra("com.google.android.gms.appinvite.BUTTON_TEXT", getString(R.string.title_try));
- // com.google.android.gms.appinvite.DEEP_LINK_URL
- return intent;
+ Intent shareIntent = new Intent();
+ shareIntent.setAction(Intent.ACTION_SEND);
+ shareIntent.putExtra(Intent.EXTRA_SUBJECT, getString(R.string.title_try_subject));
+ shareIntent.putExtra(Intent.EXTRA_TEXT, getString(R.string.title_try));
+ shareIntent.setType("text/plain");
+
+ return Intent.createChooser(shareIntent, getString(R.string.title_try_text));
}
private void onMenuFolders(long account) {
@@ -789,7 +786,7 @@ public class ActivityView extends ActivityBase
}
private void onMenuInvite() {
- startActivityForResult(getIntentInvite(), REQUEST_INVITE);
+ startActivity(getIntentInvite());
}
private class DrawerItem {
diff --git a/app/src/main/res/drawable/baseline_people_24.xml b/app/src/main/res/drawable/baseline_people_24.xml
old mode 100755
new mode 100644
diff --git a/app/src/main/res/drawable/baseline_share_24.xml b/app/src/main/res/drawable/baseline_share_24.xml
new file mode 100755
index 00000000..c6c49552
--- /dev/null
+++ b/app/src/main/res/drawable/baseline_share_24.xml
@@ -0,0 +1,11 @@
+
+
+
+
diff --git a/app/src/main/res/values-en/strings.xml b/app/src/main/res/values-en/strings.xml
index 24534d76..ae15d89b 100644
--- a/app/src/main/res/values-en/strings.xml
+++ b/app/src/main/res/values-en/strings.xml
@@ -244,7 +244,9 @@
Yes
No
Undo
- Try SimpleEmail, an simple, free software,, privacy friendly email app for Android
+ Try SimpleEmail, an simple, free software, privacy friendly email app for Android
+ Try SimpleEmail
+ Invite to:
Unexpected error
Log
Debug info
diff --git a/app/src/main/res/values-es-rES/strings.xml b/app/src/main/res/values-es-rES/strings.xml
index 564f17ae..668e4fd2 100644
--- a/app/src/main/res/values-es-rES/strings.xml
+++ b/app/src/main/res/values-es-rES/strings.xml
@@ -244,6 +244,8 @@
No
Deshacer
Pruebe SimpleEmail, un cliente de correo electrónico para Android de código abierto y enfocado en la privacidad
+ Prueba SimpleEmail
+ Invita a:
Error inesperado
Log
Información de depuración
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 1a9b2bc4..14575580 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -290,7 +290,9 @@
Undo
Try SimpleEmail, an simple, free software, privacy friendly email app for Android
-
+ Try SimpleEmail
+ Invite to:
+
Unexpected error
Log
Debug info