Remove Constructor of RemoteUserInfo which takes IBinder

Bug: 119752205, Bug: 122550211
Test: make -j;
Change-Id: I6c9664d67ec9f00aec563996d2e45cec2e9397bc
gugelfrei
Hyundo Moon 6 years ago
parent a4e1b67d25
commit bf5b9565bc

@ -1077,8 +1077,7 @@ public final class MediaSession {
private static RemoteUserInfo createRemoteUserInfo(String packageName, int pid, int uid,
ISessionControllerCallback caller) {
return new RemoteUserInfo(packageName, pid, uid,
caller != null ? caller.asBinder() : null);
return new RemoteUserInfo(packageName, pid, uid);
}
@Override

@ -544,8 +544,7 @@ public abstract class MediaBrowserService extends Service {
throw new IllegalStateException("This should be called inside of onGetRoot or"
+ " onLoadChildren or onLoadItem methods");
}
return new RemoteUserInfo(mCurConnection.pkg, mCurConnection.pid, mCurConnection.uid,
mCurConnection.callbacks.asBinder());
return new RemoteUserInfo(mCurConnection.pkg, mCurConnection.pid, mCurConnection.uid);
}
/**

Loading…
Cancel
Save