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

Commit 2170c304 authored by Pinyao Ting's avatar Pinyao Ting Committed by Android (Google) Code Review
Browse files

Merge "Include a version number for DrawInstructions." into main

parents 22735c97 60ac21b2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -60249,6 +60249,7 @@ package android.widget {
  }
  @FlaggedApi("android.appwidget.flags.draw_data_parcel") public static final class RemoteViews.DrawInstructions {
    method @FlaggedApi("android.appwidget.flags.draw_data_parcel") public static long getSupportedVersion();
  }
  @FlaggedApi("android.appwidget.flags.draw_data_parcel") public static final class RemoteViews.DrawInstructions.Builder {
+11 −0
Original line number Diff line number Diff line
@@ -7573,6 +7573,8 @@ public class RemoteViews implements Parcelable, Filter {
    @FlaggedApi(FLAG_DRAW_DATA_PARCEL)
    public static final class DrawInstructions {

        private static final long VERSION = 1L;

        @NonNull
        final List<byte[]> mInstructions;

@@ -7607,6 +7609,7 @@ public class RemoteViews implements Parcelable, Filter {
            }
            return new DrawInstructions(instructions);
        }

        private static void writeToParcel(@Nullable final DrawInstructions drawInstructions,
                @NonNull final Parcel dest, final int flags) {
            if (drawInstructions == null) {
@@ -7621,6 +7624,14 @@ public class RemoteViews implements Parcelable, Filter {
            }
        }

        /**
         * Version number of {@link DrawInstructions} currently supported.
         */
        @FlaggedApi(FLAG_DRAW_DATA_PARCEL)
        public static long getSupportedVersion() {
            return VERSION;
        }

        /**
         * Builder class for {@link DrawInstructions} objects.
         */