@@ -190,7 +190,7 @@ protected static String getSharedPrefsNameByChannelId(String id)
190
190
return String .format ("unity_notification_channel_%s" , id );
191
191
}
192
192
193
- protected static NotificationChannelWrapper getNotificationChannel (Context context , String id ) {
193
+ private static NotificationChannelWrapper getNotificationChannel (Context context , String id ) {
194
194
if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .O ) {
195
195
NotificationChannel ch = getNotificationManager (context ).getNotificationChannel (id );
196
196
if (ch == null )
@@ -229,7 +229,7 @@ protected static NotificationChannelWrapper getNotificationChannel(Context conte
229
229
}
230
230
231
231
@ TargetApi (Build .VERSION_CODES .O )
232
- protected static NotificationChannelWrapper notificationChannelToWrapper (Object chan ) {
232
+ private static NotificationChannelWrapper notificationChannelToWrapper (Object chan ) {
233
233
// Possibly unavailable classes cannot be in API, breaks reflection code looping over when searching for method
234
234
NotificationChannel channel = (NotificationChannel )chan ;
235
235
NotificationChannelWrapper wrapper = new NotificationChannelWrapper ();
@@ -248,9 +248,7 @@ protected static NotificationChannelWrapper notificationChannelToWrapper(Object
248
248
return wrapper ;
249
249
}
250
250
251
- // Get a notification channel by id.
252
- // This function will only be called for devices which are low than Android O.
253
- protected NotificationChannelWrapper getNotificationChannel (String id ) {
251
+ public NotificationChannelWrapper getNotificationChannel (String id ) {
254
252
return UnityNotificationManager .getNotificationChannel (mContext , id );
255
253
}
256
254
0 commit comments