Fix deprecation message

This commit is contained in:
Gaëtan Muller 2024-07-15 11:52:32 +02:00 committed by Ian Baker
parent 7406b78fbc
commit b84a63d318

View File

@ -137,19 +137,22 @@ public class MediaStyleNotificationHelper {
/** /**
* @deprecated This method is a no-op and usages can be safely removed. There is no recommended * @deprecated This method is a no-op and usages can be safely removed. There is no recommended
* alternative (it was previously only operational on API ≤ 21). * alternative (it was previously only operational on API < 21).
*/ */
@CanIgnoreReturnValue @CanIgnoreReturnValue
@Deprecated @Deprecated
@SuppressWarnings("unused")
public MediaStyle setShowCancelButton(boolean show) { public MediaStyle setShowCancelButton(boolean show) {
return this; return this;
} }
/** /**
* @deprecated This method is a no-op and usages can be safely removed. There is no recommended * @deprecated This method is a no-op and usages can be safely removed. There is no recommended
* alternative (it was previously only operational on API ≤ 21). * alternative (it was previously only operational on API < 21).
*/ */
@CanIgnoreReturnValue @CanIgnoreReturnValue
@Deprecated
@SuppressWarnings("unused")
public MediaStyle setCancelButtonIntent(PendingIntent pendingIntent) { public MediaStyle setCancelButtonIntent(PendingIntent pendingIntent) {
return this; return this;
} }