Fix Android crash on push notification

This commit is contained in:
Elias Nahum
2017-10-04 17:38:35 -03:00
committed by enahum
parent d501a678e9
commit ea4fc49d81
4 changed files with 73 additions and 34 deletions

View File

@@ -120,7 +120,7 @@ public class CustomPushNotification extends PushNotification {
protected Notification.Builder getNotificationBuilder(PendingIntent intent) {
final Resources res = mContext.getResources();
String packageName = mContext.getPackageName();
NotificationPreferencesModule notificationPreferences = NotificationPreferencesModule.getInstance();
NotificationPreferences notificationPreferences = NotificationPreferences.getInstance(mContext);
// First, get a builder initialized with defaults from the core class.
final Notification.Builder notification = new Notification.Builder(mContext);