diff options
| -rw-r--r-- | services/core/java/com/android/server/media/SystemMediaRoute2Provider.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/media/SystemMediaRoute2Provider.java b/services/core/java/com/android/server/media/SystemMediaRoute2Provider.java index 67bc61c3b9f6..77926db52a29 100644 --- a/services/core/java/com/android/server/media/SystemMediaRoute2Provider.java +++ b/services/core/java/com/android/server/media/SystemMediaRoute2Provider.java @@ -474,6 +474,10 @@ class SystemMediaRoute2Provider extends MediaRoute2Provider { .setProviderId(mUniqueId) .setSystemSession(true) .addSelectedRoute(MediaRoute2Info.ROUTE_ID_DEFAULT) + .setTransferReason(newSessionInfo.getTransferReason()) + .setTransferInitiator( + newSessionInfo.getTransferInitiatorUserHandle(), + newSessionInfo.getTransferInitiatorPackageName()) .build(); return true; } |