mirror of
https://github.com/nextcloud/notes-android.git
synced 2024-11-26 14:57:38 +03:00
Use Intent.EXTRA_USER instead of custom String key to transmit account name
This commit is contained in:
parent
3b6baf42dc
commit
1548df566e
1 changed files with 1 additions and 1 deletions
|
@ -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.");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue