Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Commit

Permalink
πŸ› Issue #1996: fix PR to use getBoolean not optBoolean
Browse files Browse the repository at this point in the history
  • Loading branch information
macdonst committed Oct 18, 2017
1 parent c1e29c1 commit 32ad27d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/android/com/adobe/phonegap/push/FCMService.java
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ private void setNotificationVibration(Bundle extras, Boolean vibrateOption, Noti
}

private void setNotificationOngoing(Bundle extras, NotificationCompat.Builder mBuilder) {
boolean ongoing = extras.optBoolean(ONGOING, false);
boolean ongoing = Boolean.parseBoolean(extras.getString(ONGOING, "false"));
mBuilder.setOngoing(ongoing);
}

Expand Down

0 comments on commit 32ad27d

Please sign in to comment.