Change getScreenCaptureIntent to createScreenCaptureIntent.

Bug: 17389882
Change-Id: Icaccc6572f7fd5865f3013960bae196afa6d5dd5
This commit is contained in:
Michael Wright
2014-09-08 13:51:25 -07:00
parent a85567e5e8
commit 2326f11a21

View File

@@ -125,7 +125,8 @@ public class MediaProjectionDemo extends Activity {
return;
}
if (mMediaProjection == null) {
startActivityForResult(mProjectionManager.getScreenCaptureIntent(), PERMISSION_CODE);
startActivityForResult(mProjectionManager.createScreenCaptureIntent(),
PERMISSION_CODE);
return;
}
mVirtualDisplay = createVirtualDisplay();