Change getScreenCaptureIntent to createScreenCaptureIntent.
Bug: 17389882 Change-Id: Icaccc6572f7fd5865f3013960bae196afa6d5dd5
This commit is contained in:
@@ -125,7 +125,8 @@ public class MediaProjectionDemo extends Activity {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mMediaProjection == null) {
|
if (mMediaProjection == null) {
|
||||||
startActivityForResult(mProjectionManager.getScreenCaptureIntent(), PERMISSION_CODE);
|
startActivityForResult(mProjectionManager.createScreenCaptureIntent(),
|
||||||
|
PERMISSION_CODE);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
mVirtualDisplay = createVirtualDisplay();
|
mVirtualDisplay = createVirtualDisplay();
|
||||||
|
|||||||
Reference in New Issue
Block a user