Use Intent.EXTRA_USER instead of custom String key to transmit account name

This commit is contained in:
Stefan Niedermann 2021-05-17 11:27:23 +02:00
parent 3b6baf42dc
commit 1548df566e

View file

@ -92,7 +92,7 @@ public class MenuAdapter extends RecyclerView.Adapter<MenuViewHolder> {
if (packageManager.resolveActivity(intent, 0) != null) {
return intent
.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
.putExtra("TARGET_ACCOUNT_NAME", account.getAccountName());
.putExtra(Intent.EXTRA_USER, account.getAccountName());
}
throw new PackageManager.NameNotFoundException("Could not resolve target activity.");
}