Bind to screenshot service for current user.
Let apps bindService() across user boundaries if they hold the INTERACT_ACROSS_USERS_FULL permission. Bug: 7012034 Change-Id: I2047d8318e1de47bfae7470d1dbc6fe5cfe44fdc
This commit is contained in:
@@ -3134,7 +3134,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
@Override
|
||||
public void onServiceDisconnected(ComponentName name) {}
|
||||
};
|
||||
if (mContext.bindService(intent, conn, Context.BIND_AUTO_CREATE)) {
|
||||
if (mContext.bindService(
|
||||
intent, conn, Context.BIND_AUTO_CREATE, UserHandle.USER_CURRENT)) {
|
||||
mScreenshotConnection = conn;
|
||||
mHandler.postDelayed(mScreenshotTimeout, 10000);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user