Simplify invite

This commit is contained in:
M66B 2018-12-16 10:17:49 +01:00
parent ec78c30f95
commit 3d343237dc
1 changed files with 4 additions and 6 deletions

View File

@ -1244,12 +1244,10 @@ public class ActivityMain extends AppCompatActivity implements SharedPreferences
}
private static Intent getIntentInvite(Context context) {
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", context.getString(R.string.menu_invite));
intent.putExtra("com.google.android.gms.appinvite.MESSAGE", context.getString(R.string.msg_try));
intent.putExtra("com.google.android.gms.appinvite.BUTTON_TEXT", context.getString(R.string.msg_try));
// com.google.android.gms.appinvite.DEEP_LINK_URL
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("text/plain");
intent.putExtra(Intent.EXTRA_SUBJECT, context.getString(R.string.app_name));
intent.putExtra(Intent.EXTRA_TEXT, context.getString(R.string.msg_try) + "\n\nhttps://www.netguard.me/\n\n");
return intent;
}