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

Commit 2c21701e authored by Anton Hansson's avatar Anton Hansson
Browse files

Delete @removed-at-birth Bubble APIs

These APIs never shipped in a final SDK, but were marked @removed
instead of actually removed (to maintain compatibility with DPs).

It's been a while, so just delete them now.
    added ag/10063045
    removed ag/10890452

Bug: 155877914
Test: m
Change-Id: Ie39290a5aefb69c0021dffd014b0f06eb1105ac0
parent 03be3038
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -8,16 +8,6 @@ package android.app {
    method @Deprecated public void setLatestEventInfo(android.content.Context, CharSequence, CharSequence, android.app.PendingIntent);
  }

  public static final class Notification.BubbleMetadata implements android.os.Parcelable {
    method @Deprecated @Nullable public android.graphics.drawable.Icon getBubbleIcon();
    method @Deprecated @Nullable public android.app.PendingIntent getBubbleIntent();
  }

  public static final class Notification.BubbleMetadata.Builder {
    method @Deprecated @NonNull public android.app.Notification.BubbleMetadata.Builder createIntentBubble(@NonNull android.app.PendingIntent, @NonNull android.graphics.drawable.Icon);
    method @Deprecated @NonNull public android.app.Notification.BubbleMetadata.Builder createShortcutBubble(@NonNull String);
  }

  public static class Notification.Builder {
    method @Deprecated public android.app.Notification.Builder setChannel(String);
    method @Deprecated public android.app.Notification.Builder setTimeout(long);
+0 −62
Original line number Diff line number Diff line
@@ -10372,16 +10372,6 @@ public class Notification implements Parcelable
            return mPendingIntent;
        }
        /**
         * @deprecated use {@link #getIntent()} instead.
         * @removed Removed from the R SDK but was never publicly stable.
         */
        @Nullable
        @Deprecated
        public PendingIntent getBubbleIntent() {
            return mPendingIntent;
        }
        /**
         * @return the pending intent to send when the bubble is dismissed by a user, if one exists.
         */
@@ -10400,16 +10390,6 @@ public class Notification implements Parcelable
            return mIcon;
        }
        /**
         * @deprecated use {@link #getIcon()} instead.
         * @removed Removed from the R SDK but was never publicly stable.
         */
        @Nullable
        @Deprecated
        public Icon getBubbleIcon() {
            return mIcon;
        }
        /**
         * @return the ideal height, in DPs, for the floating window that app content defined by
         * {@link #getIntent()} for this bubble. A value of 0 indicates a desired height has
@@ -10666,48 +10646,6 @@ public class Notification implements Parcelable
                mIcon = icon;
            }
            /**
             * @deprecated use {@link Builder#Builder(String)} instead.
             * @removed Removed from the R SDK but was never publicly stable.
             */
            @NonNull
            @Deprecated
            public BubbleMetadata.Builder createShortcutBubble(@NonNull String shortcutId) {
                if (!TextUtils.isEmpty(shortcutId)) {
                    // If shortcut id is set, we don't use these if they were previously set.
                    mPendingIntent = null;
                    mIcon = null;
                }
                mShortcutId = shortcutId;
                return this;
            }
            /**
             * @deprecated use {@link Builder#Builder(PendingIntent, Icon)} instead.
             * @removed Removed from the R SDK but was never publicly stable.
             */
            @NonNull
            @Deprecated
            public BubbleMetadata.Builder createIntentBubble(@NonNull PendingIntent intent,
                    @NonNull Icon icon) {
                if (intent == null) {
                    throw new IllegalArgumentException("Bubble requires non-null pending intent");
                }
                if (icon == null) {
                    throw new IllegalArgumentException("Bubbles require non-null icon");
                }
                if (icon.getType() != TYPE_URI_ADAPTIVE_BITMAP
                        && icon.getType() != TYPE_URI) {
                    Log.w(TAG, "Bubbles work best with icons of TYPE_URI or "
                            + "TYPE_URI_ADAPTIVE_BITMAP. "
                            + "In the future, using an icon of this type will be required.");
                }
                mShortcutId = null;
                mPendingIntent = intent;
                mIcon = icon;
                return this;
            }
            /**
             * Sets the intent for the bubble.
             *