mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Update some APIs to Use real types in ShadowNotificationManager
NotificationChannel and NotificationChannelGroup are public APIs that were added in Android O, so at this point it is okay to have them appear in API signatures. PiperOrigin-RevId: 675756005
This commit is contained in:
parent
087e75850e
commit
dc66c9160c
@ -1280,10 +1280,9 @@ public class DefaultMediaNotificationProviderTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static void assertHasNotificationChannel(
|
private static void assertHasNotificationChannel(
|
||||||
List<Object> notificationChannels, String channelId, String channelName) {
|
List<NotificationChannel> notificationChannels, String channelId, String channelName) {
|
||||||
boolean found = false;
|
boolean found = false;
|
||||||
for (int i = 0; i < notificationChannels.size(); i++) {
|
for (NotificationChannel notificationChannel : notificationChannels) {
|
||||||
NotificationChannel notificationChannel = (NotificationChannel) notificationChannels.get(i);
|
|
||||||
found =
|
found =
|
||||||
notificationChannel.getId().equals(channelId)
|
notificationChannel.getId().equals(channelId)
|
||||||
// NotificationChannel.getName() is CharSequence. Use String#contentEquals instead
|
// NotificationChannel.getName() is CharSequence. Use String#contentEquals instead
|
||||||
|
Loading…
x
Reference in New Issue
Block a user