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

Commit 48be7316 authored by Kweku Adams's avatar Kweku Adams
Browse files

Use non-deprecated method.

getChannel() has been deprecated in favor of getChannelId() and will be
removed soon.

Bug: 135214188
Test: atest com.android.internal.telephony.CarrierServiceStateTrackerTest
Test: atest com.android.internal.telephony.ServiceStateTrackerTest
Change-Id: Ib55299c268d45d4e8ccc6856b9bb4c5caa975aac
(cherry picked from commit 2e1932c0)
parent 51508842
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -450,7 +450,7 @@ public class CarrierServiceStateTracker extends Handler {
                    .setContentTitle(title)
                    .setStyle(new Notification.BigTextStyle().bigText(details))
                    .setContentText(details)
                    .setChannel(NotificationChannelController.CHANNEL_ID_ALERT)
                    .setChannelId(NotificationChannelController.CHANNEL_ID_ALERT)
                    .setContentIntent(settingsIntent);
        }
    }
@@ -525,7 +525,7 @@ public class CarrierServiceStateTracker extends Handler {
                    .setContentTitle(title)
                    .setStyle(new Notification.BigTextStyle().bigText(details))
                    .setContentText(details)
                    .setChannel(NotificationChannelController.CHANNEL_ID_WFC);
                    .setChannelId(NotificationChannelController.CHANNEL_ID_WFC);
        }
    }
}
+1 −1
Original line number Diff line number Diff line
@@ -4203,7 +4203,7 @@ public class ServiceStateTracker extends Handler {
                .setContentTitle(title)
                .setStyle(new Notification.BigTextStyle().bigText(details))
                .setContentText(details)
                .setChannel(NotificationChannelController.CHANNEL_ID_ALERT)
                .setChannelId(NotificationChannelController.CHANNEL_ID_ALERT)
                .build();

        NotificationManager notificationManager = (NotificationManager)