File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
com.unity.mobile.notifications/Runtime/Android/Plugins/com/unity/androidnotifications Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -190,15 +190,15 @@ protected static String getSharedPrefsNameByChannelId(String id)
190
190
return String .format ("unity_notification_channel_%s" , id );
191
191
}
192
192
193
- private static NotificationChannelWrapper getNotificationChannel (Context context , String id ) {
193
+ public NotificationChannelWrapper getNotificationChannel (String id ) {
194
194
if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .O ) {
195
- NotificationChannel ch = getNotificationManager (context ).getNotificationChannel (id );
195
+ NotificationChannel ch = getNotificationManager (mContext ).getNotificationChannel (id );
196
196
if (ch == null )
197
197
return null ;
198
198
return notificationChannelToWrapper (ch );
199
199
}
200
200
201
- SharedPreferences prefs = context .getSharedPreferences (getSharedPrefsNameByChannelId (id ), Context .MODE_PRIVATE );
201
+ SharedPreferences prefs = mContext .getSharedPreferences (getSharedPrefsNameByChannelId (id ), Context .MODE_PRIVATE );
202
202
NotificationChannelWrapper channel = new NotificationChannelWrapper ();
203
203
204
204
channel .id = id ;
@@ -248,10 +248,6 @@ private static NotificationChannelWrapper notificationChannelToWrapper(Object ch
248
248
return wrapper ;
249
249
}
250
250
251
- public NotificationChannelWrapper getNotificationChannel (String id ) {
252
- return UnityNotificationManager .getNotificationChannel (mContext , id );
253
- }
254
-
255
251
public void deleteNotificationChannel (String id ) {
256
252
if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .O ) {
257
253
getNotificationManager ().deleteNotificationChannel (id );
You can’t perform that action at this time.
0 commit comments