@@ -106,7 +106,7 @@ public NotificationManagerJni(AndroidJavaClass clazz, AndroidJavaObject obj)
106
106
107
107
void CollectMethods ( AndroidJavaClass clazz )
108
108
{
109
- getNotificationFromIntent = JniApi . FindMethod ( clazz , "getNotificationFromIntent" , "(Landroid/content/Context;Landroid/content/ Intent;)Landroid/app/Notification;" , true ) ;
109
+ getNotificationFromIntent = JniApi . FindMethod ( clazz , "getNotificationFromIntent" , "(Landroid/content/Intent;)Landroid/app/Notification;" , false ) ;
110
110
setNotificationIcon = JniApi . FindMethod ( clazz , "setNotificationIcon" , "(Landroid/app/Notification$Builder;Ljava/lang/String;Ljava/lang/String;)V" , true ) ;
111
111
setNotificationColor = JniApi . FindMethod ( clazz , "setNotificationColor" , "(Landroid/app/Notification$Builder;I)V" , true ) ;
112
112
getNotificationColor = JniApi . FindMethod ( clazz , "getNotificationColor" , "(Landroid/app/Notification;)Ljava/lang/Integer;" , true ) ;
@@ -118,9 +118,9 @@ void CollectMethods(AndroidJavaClass clazz)
118
118
createNotificationBuilder = JniApi . FindMethod ( clazz , "createNotificationBuilder" , "(Ljava/lang/String;)Landroid/app/Notification$Builder;" , false ) ;
119
119
}
120
120
121
- public AndroidJavaObject GetNotificationFromIntent ( AndroidJavaObject activity , AndroidJavaObject intent )
121
+ public AndroidJavaObject GetNotificationFromIntent ( AndroidJavaObject intent )
122
122
{
123
- return klass . CallStatic < AndroidJavaObject > ( getNotificationFromIntent , activity , intent ) ;
123
+ return self . Call < AndroidJavaObject > ( getNotificationFromIntent , intent ) ;
124
124
}
125
125
126
126
public void SetNotificationIcon ( AndroidJavaObject builder , AndroidJavaObject keyName , string icon )
@@ -839,7 +839,7 @@ public static AndroidNotificationIntentData GetLastNotificationIntent()
839
839
return null ;
840
840
841
841
var intent = s_CurrentActivity . Call < AndroidJavaObject > ( "getIntent" ) ;
842
- var notification = s_Jni . NotificationManager . GetNotificationFromIntent ( s_CurrentActivity , intent ) ;
842
+ var notification = s_Jni . NotificationManager . GetNotificationFromIntent ( intent ) ;
843
843
if ( notification == null )
844
844
return null ;
845
845
return GetNotificationData ( notification ) ;
0 commit comments