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

Commit 36e132b0 authored by Mady Mellor's avatar Mady Mellor Committed by Android (Google) Code Review
Browse files

Merge "Remove the title API bc we don't use it"

parents 5f01fe89 2c70987c
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -5484,7 +5484,6 @@ package android.app {
    method @NonNull public android.graphics.drawable.Icon getIcon();
    method @NonNull public android.app.PendingIntent getIntent();
    method public boolean getSuppressInitialNotification();
    method @Deprecated public CharSequence getTitle();
    method public void writeToParcel(android.os.Parcel, int);
    field @NonNull public static final android.os.Parcelable.Creator<android.app.Notification.BubbleMetadata> CREATOR;
  }
@@ -5498,7 +5497,6 @@ package android.app {
    method @NonNull public android.app.Notification.BubbleMetadata.Builder setIcon(@NonNull android.graphics.drawable.Icon);
    method @NonNull public android.app.Notification.BubbleMetadata.Builder setIntent(@NonNull android.app.PendingIntent);
    method @NonNull public android.app.Notification.BubbleMetadata.Builder setSuppressInitialNotification(boolean);
    method @Deprecated public android.app.Notification.BubbleMetadata.Builder setTitle(CharSequence);
  }
  public static class Notification.Builder {
+0 −24
Original line number Diff line number Diff line
@@ -8580,17 +8580,6 @@ public class Notification implements Parcelable
            return mDeleteIntent;
        }

        /**
         * @return the title that will appear along with the app content defined by
         * {@link #getIntent()} for this bubble.
         *
         * @deprecated titles are no longer required or shown.
         */
        @Deprecated
        public CharSequence getTitle() {
            return "";
        }

        /**
         * @return the icon that will be displayed for this bubble when it is collapsed.
         */
@@ -8690,19 +8679,6 @@ public class Notification implements Parcelable
                return this;
            }

            /**
             * Sets the title that will appear along with the app content for this bubble.
             *
             * <p>A title is required and should expect to fit on a single line and make sense when
             * shown with the content defined by {@link #setIntent(PendingIntent)}.</p>
             *
             * @deprecated titles are no longer required or shown.
             */
            @Deprecated
            public BubbleMetadata.Builder setTitle(CharSequence title) {
                return this;
            }

            /**
             * Sets the icon that will represent the bubble when it is collapsed.
             *
+0 −1
Original line number Diff line number Diff line
@@ -312,7 +312,6 @@ public class NotificationTestHelper {
        return new BubbleMetadata.Builder()
                .setIntent(bubbleIntent)
                .setDeleteIntent(deleteIntent)
                .setTitle("bubble title")
                .setIcon(Icon.createWithResource(mContext, R.drawable.android))
                .setDesiredHeight(314)
                .build();