Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa477274 authored by Patrick Williams's avatar Patrick Williams
Browse files

Make launchCookie non-null in createScreenCaptureIntent

Bug: 323560270
Test: atest ScreenRecordingCallbackTests
Change-Id: Ib5fb206cb2d55d196e48e091caf8770e164ff28f
parent 9a9bb380
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2081,7 +2081,7 @@ package android.media.metrics {
package android.media.projection {

  public final class MediaProjectionManager {
    method @NonNull public android.content.Intent createScreenCaptureIntent(@Nullable android.app.ActivityOptions.LaunchCookie);
    method @NonNull public android.content.Intent createScreenCaptureIntent(@NonNull android.app.ActivityOptions.LaunchCookie);
  }

}
+1 −1
Original line number Diff line number Diff line
@@ -180,7 +180,7 @@ public final class MediaProjectionManager {
    @SuppressLint("UnflaggedApi")
    @TestApi
    @NonNull
    public Intent createScreenCaptureIntent(@Nullable LaunchCookie launchCookie) {
    public Intent createScreenCaptureIntent(@NonNull LaunchCookie launchCookie) {
        Intent i = createScreenCaptureIntent();
        i.putExtra(EXTRA_LAUNCH_COOKIE, launchCookie);
        return i;