Only broadcast screenshot error to the current user.

Bug: 28807226
Change-Id: I428ecc5572d7522580cdf38bded2fff9cf07abc2
This commit is contained in:
Winson
2016-05-19 10:06:18 -07:00
committed by Winson Chung
parent 585ff8bd12
commit 538c22630b

View File

@@ -5411,7 +5411,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
errorIntent.setComponent(errorComponent); errorIntent.setComponent(errorComponent);
errorIntent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT | errorIntent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT |
Intent.FLAG_RECEIVER_FOREGROUND); Intent.FLAG_RECEIVER_FOREGROUND);
mContext.sendBroadcastAsUser(errorIntent, UserHandle.ALL); mContext.sendBroadcastAsUser(errorIntent, UserHandle.CURRENT);
} }
/** {@inheritDoc} */ /** {@inheritDoc} */