Avoid lock when out of process
The lock protects no resources. Test: Non-functional change. Flag: EXEMPT Non-functional change. Bug: 205124386 Change-Id: I6eca45990f5d521a4f95a559c9d9a08cf577ab47
This commit is contained in:
@@ -1113,10 +1113,7 @@ class MediaRouter2ServiceImpl {
|
||||
Slog.w(TAG, "showMediaOutputSwitcher only works when called from foreground");
|
||||
return false;
|
||||
}
|
||||
synchronized (mLock) {
|
||||
mStatusBarManagerInternal.showMediaOutputSwitcher(packageName, userHandle,
|
||||
sessionToken);
|
||||
}
|
||||
mStatusBarManagerInternal.showMediaOutputSwitcher(packageName, userHandle, sessionToken);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user