Merge "Use new DisplayManager flag to show own content only." into klp-modular-dev

This commit is contained in:
Craig Mautner
2014-01-14 00:00:00 +00:00
committed by Android (Google) Code Review

View File

@@ -2977,8 +2977,8 @@ public final class ActivityStackSupervisor implements DisplayListener {
try { try {
virtualDisplay = dm.createVirtualDisplay(mService.mContext, virtualDisplay = dm.createVirtualDisplay(mService.mContext,
VIRTUAL_DISPLAY_BASE_NAME, width, height, density, surface, VIRTUAL_DISPLAY_BASE_NAME, width, height, density, surface,
// TODO: Add VIRTUAL_DISPLAY_FLAG_DISABLE_MIRRORING when it is available. DisplayManager.VIRTUAL_DISPLAY_FLAG_PUBLIC |
DisplayManager.VIRTUAL_DISPLAY_FLAG_PUBLIC); DisplayManager.VIRTUAL_DISPLAY_FLAG_OWN_CONTENT_ONLY);
} finally { } finally {
Binder.restoreCallingIdentity(ident); Binder.restoreCallingIdentity(ident);
} }