@@ -660,7 +660,7 @@ public void onReceive(Intent intent) {
660
660
return ;
661
661
}
662
662
}
663
- Object notification = getNotificationOrBuilderForIntent (mContext , intent );
663
+ Object notification = getNotificationOrBuilderForIntent (intent );
664
664
if (notification != null ) {
665
665
Notification notif = null ;
666
666
int id = -1 ;
@@ -853,7 +853,7 @@ public Notification getNotificationFromIntent(Intent intent) {
853
853
}
854
854
}
855
855
856
- Object notification = getNotificationOrBuilderForIntent (mContext , intent );
856
+ Object notification = getNotificationOrBuilderForIntent (intent );
857
857
if (notification == null )
858
858
return null ;
859
859
if (notification instanceof Notification )
@@ -862,7 +862,7 @@ public Notification getNotificationFromIntent(Intent intent) {
862
862
return builder .build ();
863
863
}
864
864
865
- public static Object getNotificationOrBuilderForIntent (Context context , Intent intent ) {
865
+ private Object getNotificationOrBuilderForIntent (Intent intent ) {
866
866
Object notification = null ;
867
867
boolean sendable = false ;
868
868
if (intent .hasExtra (KEY_NOTIFICATION_ID )) {
@@ -872,8 +872,8 @@ public static Object getNotificationOrBuilderForIntent(Context context, Intent i
872
872
sendable = true ;
873
873
} else {
874
874
// in case we don't have cached notification, deserialize from storage
875
- SharedPreferences prefs = context .getSharedPreferences (getSharedPrefsNameByNotificationId (String .valueOf (id )), Context .MODE_PRIVATE );
876
- notification = UnityNotificationUtilities .deserializeNotification (context , prefs );
875
+ SharedPreferences prefs = mContext .getSharedPreferences (getSharedPrefsNameByNotificationId (String .valueOf (id )), Context .MODE_PRIVATE );
876
+ notification = UnityNotificationUtilities .deserializeNotification (mContext , prefs );
877
877
}
878
878
} else if (intent .hasExtra (KEY_NOTIFICATION )) {
879
879
// old code path where Notification object is in intent
@@ -887,7 +887,7 @@ public static Object getNotificationOrBuilderForIntent(Context context, Intent i
887
887
888
888
Notification .Builder builder ;
889
889
if (notification instanceof Notification ) {
890
- builder = UnityNotificationUtilities .recoverBuilder (context , (Notification )notification );
890
+ builder = UnityNotificationUtilities .recoverBuilder (mContext , (Notification )notification );
891
891
}
892
892
else {
893
893
builder = (Notification .Builder )notification ;
0 commit comments