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:
hoisie 2024-09-17 16:44:37 -07:00 committed by Copybara-Service
parent 087e75850e
commit dc66c9160c

View File

@ -1280,10 +1280,9 @@ public class DefaultMediaNotificationProviderTest {
}
private static void assertHasNotificationChannel(
List<Object> notificationChannels, String channelId, String channelName) {
List<NotificationChannel> notificationChannels, String channelId, String channelName) {
boolean found = false;
for (int i = 0; i < notificationChannels.size(); i++) {
NotificationChannel notificationChannel = (NotificationChannel) notificationChannels.get(i);
for (NotificationChannel notificationChannel : notificationChannels) {
found =
notificationChannel.getId().equals(channelId)
// NotificationChannel.getName() is CharSequence. Use String#contentEquals instead