Skip to content

Commit

Permalink
[android][notifications] Fix for #1167 - progress bar not working
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbianca committed Jun 3, 2018
1 parent bc0326b commit 2a083f7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ protected Void doInBackground(Void... voids) {
nb = nb.setPriority(priority.intValue());
}
if (android.containsKey("progress")) {
Bundle progress = android.getBundle("lights");
Bundle progress = android.getBundle("progress");
Double max = progress.getDouble("max");
Double progressI = progress.getDouble("progress");
nb = nb.setProgress(max.intValue(), progressI.intValue(), progress.getBoolean("indeterminate"));
Expand Down Expand Up @@ -283,11 +283,11 @@ protected Void doInBackground(Void... voids) {
if (reactContext != null) {
Utils.sendEvent(reactContext, "notifications_notification_displayed", Arguments.fromBundle(notification));
}

if (promise != null) {
promise.resolve(null);
}

} catch (Exception e) {
Log.e(TAG, "Failed to send notification", e);
if (promise != null) {
Expand Down

0 comments on commit 2a083f7

Please sign in to comment.