OSDN Git Service

Add ICompanionDeviceManager.getAssociation overload with explicit userId
[android-x86/frameworks-base.git] / core / java / android / companion / CompanionDeviceManager.java
index 7b38863..4d788e7 100644 (file)
@@ -167,7 +167,7 @@ public final class CompanionDeviceManager {
             return Collections.emptyList();
         }
         try {
-            return mService.getAssociations(mContext.getPackageName());
+            return mService.getAssociations(mContext.getPackageName(), mContext.getUserId());
         } catch (RemoteException e) {
             throw e.rethrowFromSystemServer();
         }