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

Commit 60ac21b2 authored by Pinyao Ting's avatar Pinyao Ting
Browse files

Include a version number for DrawInstructions.

Bug: 286130467
Test: manual
Change-Id: I683da2af657b0a5734e8b6aef7ffa0e22db92433
parent 7c724434
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -60104,6 +60104,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
@@ -7565,6 +7565,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;

@@ -7599,6 +7601,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) {
@@ -7613,6 +7616,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.
         */