File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
android/src/main/java/com/dieam/reactnativepushnotification/modules Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -41,10 +41,9 @@ public RNPushNotification(ReactApplicationContext reactContext) {
41
41
reactContext .addActivityEventListener (this );
42
42
43
43
Application applicationContext = (Application ) reactContext .getApplicationContext ();
44
- RNPushNotificationConfig config = new RNPushNotificationConfig (applicationContext );
45
44
46
45
// The @ReactNative methods use this
47
- mRNPushNotificationHelper = new RNPushNotificationHelper (applicationContext , config );
46
+ mRNPushNotificationHelper = new RNPushNotificationHelper (applicationContext );
48
47
// This is used to delivery callbacks to JS
49
48
mJsDelivery = new RNPushNotificationJsDelivery (reactContext );
50
49
Original file line number Diff line number Diff line change @@ -44,9 +44,9 @@ public class RNPushNotificationHelper {
44
44
private static final long ONE_HOUR = 60 * ONE_MINUTE ;
45
45
private static final long ONE_DAY = 24 * ONE_HOUR ;
46
46
47
- public RNPushNotificationHelper (Application context , RNPushNotificationConfig config ) {
47
+ public RNPushNotificationHelper (Application context ) {
48
48
this .context = context ;
49
- this .config = config ;
49
+ this .config = new RNPushNotificationConfig ( context ) ;
50
50
this .scheduledNotificationsPersistence = context .getSharedPreferences (RNPushNotificationHelper .PREFERENCES_KEY , Context .MODE_PRIVATE );
51
51
}
52
52
You can’t perform that action at this time.
0 commit comments