[android][notifications] Fix for #1167 - progress bar not working

This commit is contained in:
Chris Bianca
2018-06-03 17:32:40 +04:00
parent bc0326b3bf
commit 2a083f7deb

View File

@@ -200,7 +200,7 @@ public class DisplayNotificationTask extends AsyncTask<Void, Void, Void> {
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"));