From 686eb7fd336ca6d504575de327d4806177f1bf3f Mon Sep 17 00:00:00 2001 From: Javi Rueda Date: Tue, 16 Mar 2021 22:31:59 +0100 Subject: [PATCH] Add is_app_readable parameter to notification_list call --- .../io/lbry/browser/tasks/lbryinc/NotificationListTask.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/lbry/browser/tasks/lbryinc/NotificationListTask.java b/app/src/main/java/io/lbry/browser/tasks/lbryinc/NotificationListTask.java index be8c64f6..69722037 100644 --- a/app/src/main/java/io/lbry/browser/tasks/lbryinc/NotificationListTask.java +++ b/app/src/main/java/io/lbry/browser/tasks/lbryinc/NotificationListTask.java @@ -16,8 +16,10 @@ import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; +import java.util.HashMap; import java.util.List; import java.util.Locale; +import java.util.Map; import io.lbry.browser.MainActivity; import io.lbry.browser.data.DatabaseHelper; @@ -47,7 +49,9 @@ public class NotificationListTask extends AsyncTask notifications = new ArrayList<>(); SQLiteDatabase db = null; try { - JSONArray array = (JSONArray) Lbryio.parseResponse(Lbryio.call("notification", "list", context)); + Map parameters = new HashMap<>(1); + parameters.put("is_app_readable", "true"); + JSONArray array = (JSONArray) Lbryio.parseResponse(Lbryio.call("notification", "list", parameters, context)); if (array != null) { for (int i = 0; i < array.length(); i++) { JSONObject item = array.getJSONObject(i);