Merge "Fix issue #28931042: wtf in system server" into nyc-dev am: ae02bfdd28 am: 3f2704b112

am: 4cb2d09cc9

* commit '4cb2d09cc9ffeb2826a6409ccfe5e9a40bf5b71d':
  Fix issue #28931042: wtf in system server

Change-Id: I157db2bf789bcf339748f5462e8ce3e4dc41478a
This commit is contained in:
Dianne Hackborn
2016-05-25 00:30:40 +00:00
committed by android-build-merger

View File

@@ -5421,7 +5421,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
// If the service process is killed, then ask it to clean up after itself
final ComponentName errorComponent = new ComponentName(SYSUI_PACKAGE,
SYSUI_SCREENSHOT_ERROR_RECEIVER);
Intent errorIntent = new Intent();
Intent errorIntent = new Intent(Intent.ACTION_USER_PRESENT);
errorIntent.setComponent(errorComponent);
errorIntent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT |
Intent.FLAG_RECEIVER_FOREGROUND);