|
|
@ -122,8 +122,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|
|
|
static final int REQUEST_THREAD = 2;
|
|
|
|
static final int REQUEST_THREAD = 2;
|
|
|
|
|
|
|
|
|
|
|
|
static final int REQUEST_ATTACHMENT = 1;
|
|
|
|
static final int REQUEST_ATTACHMENT = 1;
|
|
|
|
static final int REQUEST_INVITE = 2;
|
|
|
|
static final int REQUEST_DECRYPT = 2;
|
|
|
|
static final int REQUEST_DECRYPT = 3;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static final String ACTION_VIEW_MESSAGES = BuildConfig.APPLICATION_ID + ".VIEW_MESSAGES";
|
|
|
|
static final String ACTION_VIEW_MESSAGES = BuildConfig.APPLICATION_ID + ".VIEW_MESSAGES";
|
|
|
|
static final String ACTION_VIEW_THREAD = BuildConfig.APPLICATION_ID + ".VIEW_THREAD";
|
|
|
|
static final String ACTION_VIEW_THREAD = BuildConfig.APPLICATION_ID + ".VIEW_THREAD";
|
|
|
@ -712,12 +711,10 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private Intent getIntentInvite() {
|
|
|
|
private Intent getIntentInvite() {
|
|
|
|
Intent intent = new Intent("com.google.android.gms.appinvite.ACTION_APP_INVITE");
|
|
|
|
Intent intent = new Intent(Intent.ACTION_SEND);
|
|
|
|
intent.setPackage("com.google.android.gms");
|
|
|
|
intent.setType("text/plain");
|
|
|
|
intent.putExtra("com.google.android.gms.appinvite.TITLE", getString(R.string.menu_invite));
|
|
|
|
intent.putExtra(Intent.EXTRA_SUBJECT, getString(R.string.app_name));
|
|
|
|
intent.putExtra("com.google.android.gms.appinvite.MESSAGE", getString(R.string.title_try));
|
|
|
|
intent.putExtra(Intent.EXTRA_TEXT, getString(R.string.title_try) + "\n\nhttps://email.faircode.eu/");
|
|
|
|
intent.putExtra("com.google.android.gms.appinvite.BUTTON_TEXT", getString(R.string.title_try));
|
|
|
|
|
|
|
|
// com.google.android.gms.appinvite.DEEP_LINK_URL
|
|
|
|
|
|
|
|
return intent;
|
|
|
|
return intent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -839,7 +836,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void onMenuInvite() {
|
|
|
|
private void onMenuInvite() {
|
|
|
|
startActivityForResult(Helper.getChooser(this, getIntentInvite()), REQUEST_INVITE);
|
|
|
|
startActivity(getIntentInvite());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void onMenuOtherApps() {
|
|
|
|
private void onMenuOtherApps() {
|
|
|
|