Added ability to read comments on claims #920

Merged
clay53 merged 4 commits from comments into master 2020-05-30 01:47:50 +02:00
2 changed files with 9 additions and 5 deletions
Showing only changes of commit 9e6acd9a0d - Show all commits

View file

@ -17,12 +17,16 @@ import io.lbry.browser.utils.Helper;
akinwale commented 2020-05-28 10:44:30 +02:00 (Migrated from github.com)
Review

Could you change this to handle pagination by adding page and pageSize parameters? For a simple example showing how pagination works for infinite scroll, refer to PurchaseListTask and the recycler view scroll listener contentList.addScrollListener in LibraryFragment.java.

Could you change this to handle pagination by adding `page` and `pageSize` parameters? For a simple example showing how pagination works for infinite scroll, refer to `PurchaseListTask` and the recycler view scroll listener `contentList.addScrollListener` in `LibraryFragment.java`.
clay53 commented 2020-05-29 02:31:39 +02:00 (Migrated from github.com)
Review

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.
clay53 commented 2020-05-29 02:45:28 +02:00 (Migrated from github.com)
Review

I added the handling but I didn't implement it (I don't think you requested I implement and I'm not sure how to do that because of the above question so I just added handling). 9e6acd9

I added the handling but I didn't implement it (I don't _think_ you requested I implement and I'm not sure how to do that because of the above question so I just added handling). 9e6acd9
akinwale commented 2020-05-30 01:46:20 +02:00 (Migrated from github.com)
Review

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.

Usually, you could use a flag to check if comments are loading and then simply return instead of sending another request to fetch the next page. I'll accept this and make some tweaks.

> Where are new comments added? I'm a little worried about comments getting added while users are scrolling. Usually, you could use a flag to check if comments are loading and then simply return instead of sending another request to fetch the next page. I'll accept this and make some tweaks.
akinwale commented 2020-05-28 10:44:30 +02:00 (Migrated from github.com)
Review

Could you change this to handle pagination by adding page and pageSize parameters? For a simple example showing how pagination works for infinite scroll, refer to PurchaseListTask and the recycler view scroll listener contentList.addScrollListener in LibraryFragment.java.

Could you change this to handle pagination by adding `page` and `pageSize` parameters? For a simple example showing how pagination works for infinite scroll, refer to `PurchaseListTask` and the recycler view scroll listener `contentList.addScrollListener` in `LibraryFragment.java`.
clay53 commented 2020-05-29 02:31:39 +02:00 (Migrated from github.com)
Review

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.
clay53 commented 2020-05-29 02:45:28 +02:00 (Migrated from github.com)
Review

I added the handling but I didn't implement it (I don't think you requested I implement and I'm not sure how to do that because of the above question so I just added handling). 9e6acd9

I added the handling but I didn't implement it (I don't _think_ you requested I implement and I'm not sure how to do that because of the above question so I just added handling). 9e6acd9
akinwale commented 2020-05-30 01:46:20 +02:00 (Migrated from github.com)
Review

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.

Usually, you could use a flag to check if comments are loading and then simply return instead of sending another request to fetch the next page. I'll accept this and make some tweaks.

> Where are new comments added? I'm a little worried about comments getting added while users are scrolling. Usually, you could use a flag to check if comments are loading and then simply return instead of sending another request to fetch the next page. I'll accept this and make some tweaks.
import io.lbry.browser.utils.Lbry;
public class CommentListTask extends AsyncTask<Void, Void, List<Comment>> {
private String claim;
akinwale commented 2020-05-28 10:44:30 +02:00 (Migrated from github.com)
Review

Could you change this to handle pagination by adding page and pageSize parameters? For a simple example showing how pagination works for infinite scroll, refer to PurchaseListTask and the recycler view scroll listener contentList.addScrollListener in LibraryFragment.java.

Could you change this to handle pagination by adding `page` and `pageSize` parameters? For a simple example showing how pagination works for infinite scroll, refer to `PurchaseListTask` and the recycler view scroll listener `contentList.addScrollListener` in `LibraryFragment.java`.
clay53 commented 2020-05-29 02:31:39 +02:00 (Migrated from github.com)
Review

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.
clay53 commented 2020-05-29 02:45:28 +02:00 (Migrated from github.com)
Review

I added the handling but I didn't implement it (I don't think you requested I implement and I'm not sure how to do that because of the above question so I just added handling). 9e6acd9

I added the handling but I didn't implement it (I don't _think_ you requested I implement and I'm not sure how to do that because of the above question so I just added handling). 9e6acd9
akinwale commented 2020-05-30 01:46:20 +02:00 (Migrated from github.com)
Review

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.

Usually, you could use a flag to check if comments are loading and then simply return instead of sending another request to fetch the next page. I'll accept this and make some tweaks.

> Where are new comments added? I'm a little worried about comments getting added while users are scrolling. Usually, you could use a flag to check if comments are loading and then simply return instead of sending another request to fetch the next page. I'll accept this and make some tweaks.
private final int page;
akinwale commented 2020-05-28 10:44:30 +02:00 (Migrated from github.com)
Review

Could you change this to handle pagination by adding page and pageSize parameters? For a simple example showing how pagination works for infinite scroll, refer to PurchaseListTask and the recycler view scroll listener contentList.addScrollListener in LibraryFragment.java.

Could you change this to handle pagination by adding `page` and `pageSize` parameters? For a simple example showing how pagination works for infinite scroll, refer to `PurchaseListTask` and the recycler view scroll listener `contentList.addScrollListener` in `LibraryFragment.java`.
clay53 commented 2020-05-29 02:31:39 +02:00 (Migrated from github.com)
Review

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.
clay53 commented 2020-05-29 02:45:28 +02:00 (Migrated from github.com)
Review

I added the handling but I didn't implement it (I don't think you requested I implement and I'm not sure how to do that because of the above question so I just added handling). 9e6acd9

I added the handling but I didn't implement it (I don't _think_ you requested I implement and I'm not sure how to do that because of the above question so I just added handling). 9e6acd9
akinwale commented 2020-05-30 01:46:20 +02:00 (Migrated from github.com)
Review

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.

Usually, you could use a flag to check if comments are loading and then simply return instead of sending another request to fetch the next page. I'll accept this and make some tweaks.

> Where are new comments added? I'm a little worried about comments getting added while users are scrolling. Usually, you could use a flag to check if comments are loading and then simply return instead of sending another request to fetch the next page. I'll accept this and make some tweaks.
private final int pageSize;
akinwale commented 2020-05-28 10:44:30 +02:00 (Migrated from github.com)
Review

Could you change this to handle pagination by adding page and pageSize parameters? For a simple example showing how pagination works for infinite scroll, refer to PurchaseListTask and the recycler view scroll listener contentList.addScrollListener in LibraryFragment.java.

Could you change this to handle pagination by adding `page` and `pageSize` parameters? For a simple example showing how pagination works for infinite scroll, refer to `PurchaseListTask` and the recycler view scroll listener `contentList.addScrollListener` in `LibraryFragment.java`.
clay53 commented 2020-05-29 02:31:39 +02:00 (Migrated from github.com)
Review

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.
clay53 commented 2020-05-29 02:45:28 +02:00 (Migrated from github.com)
Review

I added the handling but I didn't implement it (I don't think you requested I implement and I'm not sure how to do that because of the above question so I just added handling). 9e6acd9

I added the handling but I didn't implement it (I don't _think_ you requested I implement and I'm not sure how to do that because of the above question so I just added handling). 9e6acd9
akinwale commented 2020-05-30 01:46:20 +02:00 (Migrated from github.com)
Review

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.

Usually, you could use a flag to check if comments are loading and then simply return instead of sending another request to fetch the next page. I'll accept this and make some tweaks.

> Where are new comments added? I'm a little worried about comments getting added while users are scrolling. Usually, you could use a flag to check if comments are loading and then simply return instead of sending another request to fetch the next page. I'll accept this and make some tweaks.
private final String claim;
akinwale commented 2020-05-28 10:44:30 +02:00 (Migrated from github.com)
Review

Could you change this to handle pagination by adding page and pageSize parameters? For a simple example showing how pagination works for infinite scroll, refer to PurchaseListTask and the recycler view scroll listener contentList.addScrollListener in LibraryFragment.java.

Could you change this to handle pagination by adding `page` and `pageSize` parameters? For a simple example showing how pagination works for infinite scroll, refer to `PurchaseListTask` and the recycler view scroll listener `contentList.addScrollListener` in `LibraryFragment.java`.
clay53 commented 2020-05-29 02:31:39 +02:00 (Migrated from github.com)
Review

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.
clay53 commented 2020-05-29 02:45:28 +02:00 (Migrated from github.com)
Review

I added the handling but I didn't implement it (I don't think you requested I implement and I'm not sure how to do that because of the above question so I just added handling). 9e6acd9

I added the handling but I didn't implement it (I don't _think_ you requested I implement and I'm not sure how to do that because of the above question so I just added handling). 9e6acd9
akinwale commented 2020-05-30 01:46:20 +02:00 (Migrated from github.com)
Review

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.

Usually, you could use a flag to check if comments are loading and then simply return instead of sending another request to fetch the next page. I'll accept this and make some tweaks.

> Where are new comments added? I'm a little worried about comments getting added while users are scrolling. Usually, you could use a flag to check if comments are loading and then simply return instead of sending another request to fetch the next page. I'll accept this and make some tweaks.
private ProgressBar progressBar;
private CommentListHandler handler;
private Exception error;
public CommentListTask(String claim, ProgressBar progressBar, CommentListHandler handler) {
akinwale commented 2020-05-28 10:44:30 +02:00 (Migrated from github.com)
Review

Could you change this to handle pagination by adding page and pageSize parameters? For a simple example showing how pagination works for infinite scroll, refer to PurchaseListTask and the recycler view scroll listener contentList.addScrollListener in LibraryFragment.java.

Could you change this to handle pagination by adding `page` and `pageSize` parameters? For a simple example showing how pagination works for infinite scroll, refer to `PurchaseListTask` and the recycler view scroll listener `contentList.addScrollListener` in `LibraryFragment.java`.
clay53 commented 2020-05-29 02:31:39 +02:00 (Migrated from github.com)
Review

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.
clay53 commented 2020-05-29 02:45:28 +02:00 (Migrated from github.com)
Review

I added the handling but I didn't implement it (I don't think you requested I implement and I'm not sure how to do that because of the above question so I just added handling). 9e6acd9

I added the handling but I didn't implement it (I don't _think_ you requested I implement and I'm not sure how to do that because of the above question so I just added handling). 9e6acd9
akinwale commented 2020-05-30 01:46:20 +02:00 (Migrated from github.com)
Review

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.

Usually, you could use a flag to check if comments are loading and then simply return instead of sending another request to fetch the next page. I'll accept this and make some tweaks.

> Where are new comments added? I'm a little worried about comments getting added while users are scrolling. Usually, you could use a flag to check if comments are loading and then simply return instead of sending another request to fetch the next page. I'll accept this and make some tweaks.
public CommentListTask(int page, int pageSize, String claim, ProgressBar progressBar, CommentListHandler handler) {
akinwale commented 2020-05-28 10:44:30 +02:00 (Migrated from github.com)
Review

Could you change this to handle pagination by adding page and pageSize parameters? For a simple example showing how pagination works for infinite scroll, refer to PurchaseListTask and the recycler view scroll listener contentList.addScrollListener in LibraryFragment.java.

Could you change this to handle pagination by adding `page` and `pageSize` parameters? For a simple example showing how pagination works for infinite scroll, refer to `PurchaseListTask` and the recycler view scroll listener `contentList.addScrollListener` in `LibraryFragment.java`.
clay53 commented 2020-05-29 02:31:39 +02:00 (Migrated from github.com)
Review

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.
clay53 commented 2020-05-29 02:45:28 +02:00 (Migrated from github.com)
Review

I added the handling but I didn't implement it (I don't think you requested I implement and I'm not sure how to do that because of the above question so I just added handling). 9e6acd9

I added the handling but I didn't implement it (I don't _think_ you requested I implement and I'm not sure how to do that because of the above question so I just added handling). 9e6acd9
akinwale commented 2020-05-30 01:46:20 +02:00 (Migrated from github.com)
Review

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.

Usually, you could use a flag to check if comments are loading and then simply return instead of sending another request to fetch the next page. I'll accept this and make some tweaks.

> Where are new comments added? I'm a little worried about comments getting added while users are scrolling. Usually, you could use a flag to check if comments are loading and then simply return instead of sending another request to fetch the next page. I'll accept this and make some tweaks.
this.page = page;
akinwale commented 2020-05-28 10:44:30 +02:00 (Migrated from github.com)
Review

Could you change this to handle pagination by adding page and pageSize parameters? For a simple example showing how pagination works for infinite scroll, refer to PurchaseListTask and the recycler view scroll listener contentList.addScrollListener in LibraryFragment.java.

Could you change this to handle pagination by adding `page` and `pageSize` parameters? For a simple example showing how pagination works for infinite scroll, refer to `PurchaseListTask` and the recycler view scroll listener `contentList.addScrollListener` in `LibraryFragment.java`.
clay53 commented 2020-05-29 02:31:39 +02:00 (Migrated from github.com)
Review

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.
clay53 commented 2020-05-29 02:45:28 +02:00 (Migrated from github.com)
Review

I added the handling but I didn't implement it (I don't think you requested I implement and I'm not sure how to do that because of the above question so I just added handling). 9e6acd9

I added the handling but I didn't implement it (I don't _think_ you requested I implement and I'm not sure how to do that because of the above question so I just added handling). 9e6acd9
akinwale commented 2020-05-30 01:46:20 +02:00 (Migrated from github.com)
Review

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.

Usually, you could use a flag to check if comments are loading and then simply return instead of sending another request to fetch the next page. I'll accept this and make some tweaks.

> Where are new comments added? I'm a little worried about comments getting added while users are scrolling. Usually, you could use a flag to check if comments are loading and then simply return instead of sending another request to fetch the next page. I'll accept this and make some tweaks.
this.pageSize = pageSize;
akinwale commented 2020-05-28 10:44:30 +02:00 (Migrated from github.com)
Review

Could you change this to handle pagination by adding page and pageSize parameters? For a simple example showing how pagination works for infinite scroll, refer to PurchaseListTask and the recycler view scroll listener contentList.addScrollListener in LibraryFragment.java.

Could you change this to handle pagination by adding `page` and `pageSize` parameters? For a simple example showing how pagination works for infinite scroll, refer to `PurchaseListTask` and the recycler view scroll listener `contentList.addScrollListener` in `LibraryFragment.java`.
clay53 commented 2020-05-29 02:31:39 +02:00 (Migrated from github.com)
Review

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.
clay53 commented 2020-05-29 02:45:28 +02:00 (Migrated from github.com)
Review

I added the handling but I didn't implement it (I don't think you requested I implement and I'm not sure how to do that because of the above question so I just added handling). 9e6acd9

I added the handling but I didn't implement it (I don't _think_ you requested I implement and I'm not sure how to do that because of the above question so I just added handling). 9e6acd9
akinwale commented 2020-05-30 01:46:20 +02:00 (Migrated from github.com)
Review

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.

Usually, you could use a flag to check if comments are loading and then simply return instead of sending another request to fetch the next page. I'll accept this and make some tweaks.

> Where are new comments added? I'm a little worried about comments getting added while users are scrolling. Usually, you could use a flag to check if comments are loading and then simply return instead of sending another request to fetch the next page. I'll accept this and make some tweaks.
this.claim = claim;
this.progressBar = progressBar;
this.handler = handler;
@ -39,8 +43,8 @@ public class CommentListTask extends AsyncTask<Void, Void, List<Comment>> {
akinwale commented 2020-05-28 10:44:30 +02:00 (Migrated from github.com)
Review

Could you change this to handle pagination by adding page and pageSize parameters? For a simple example showing how pagination works for infinite scroll, refer to PurchaseListTask and the recycler view scroll listener contentList.addScrollListener in LibraryFragment.java.

Could you change this to handle pagination by adding `page` and `pageSize` parameters? For a simple example showing how pagination works for infinite scroll, refer to `PurchaseListTask` and the recycler view scroll listener `contentList.addScrollListener` in `LibraryFragment.java`.
clay53 commented 2020-05-29 02:31:39 +02:00 (Migrated from github.com)
Review

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.
clay53 commented 2020-05-29 02:45:28 +02:00 (Migrated from github.com)
Review

I added the handling but I didn't implement it (I don't think you requested I implement and I'm not sure how to do that because of the above question so I just added handling). 9e6acd9

I added the handling but I didn't implement it (I don't _think_ you requested I implement and I'm not sure how to do that because of the above question so I just added handling). 9e6acd9
akinwale commented 2020-05-30 01:46:20 +02:00 (Migrated from github.com)
Review

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.

Usually, you could use a flag to check if comments are loading and then simply return instead of sending another request to fetch the next page. I'll accept this and make some tweaks.

> Where are new comments added? I'm a little worried about comments getting added while users are scrolling. Usually, you could use a flag to check if comments are loading and then simply return instead of sending another request to fetch the next page. I'll accept this and make some tweaks.
akinwale commented 2020-05-28 10:44:30 +02:00 (Migrated from github.com)
Review

Could you change this to handle pagination by adding page and pageSize parameters? For a simple example showing how pagination works for infinite scroll, refer to PurchaseListTask and the recycler view scroll listener contentList.addScrollListener in LibraryFragment.java.

Could you change this to handle pagination by adding `page` and `pageSize` parameters? For a simple example showing how pagination works for infinite scroll, refer to `PurchaseListTask` and the recycler view scroll listener `contentList.addScrollListener` in `LibraryFragment.java`.
clay53 commented 2020-05-29 02:31:39 +02:00 (Migrated from github.com)
Review

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.
clay53 commented 2020-05-29 02:45:28 +02:00 (Migrated from github.com)
Review

I added the handling but I didn't implement it (I don't think you requested I implement and I'm not sure how to do that because of the above question so I just added handling). 9e6acd9

I added the handling but I didn't implement it (I don't _think_ you requested I implement and I'm not sure how to do that because of the above question so I just added handling). 9e6acd9
akinwale commented 2020-05-30 01:46:20 +02:00 (Migrated from github.com)
Review

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.

Usually, you could use a flag to check if comments are loading and then simply return instead of sending another request to fetch the next page. I'll accept this and make some tweaks.

> Where are new comments added? I'm a little worried about comments getting added while users are scrolling. Usually, you could use a flag to check if comments are loading and then simply return instead of sending another request to fetch the next page. I'll accept this and make some tweaks.
Map<String, Object> options = new HashMap<>();
options.put("claim_id", claim);
options.put("page", 1);
akinwale commented 2020-05-28 10:44:30 +02:00 (Migrated from github.com)
Review

Could you change this to handle pagination by adding page and pageSize parameters? For a simple example showing how pagination works for infinite scroll, refer to PurchaseListTask and the recycler view scroll listener contentList.addScrollListener in LibraryFragment.java.

Could you change this to handle pagination by adding `page` and `pageSize` parameters? For a simple example showing how pagination works for infinite scroll, refer to `PurchaseListTask` and the recycler view scroll listener `contentList.addScrollListener` in `LibraryFragment.java`.
clay53 commented 2020-05-29 02:31:39 +02:00 (Migrated from github.com)
Review

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.
clay53 commented 2020-05-29 02:45:28 +02:00 (Migrated from github.com)
Review

I added the handling but I didn't implement it (I don't think you requested I implement and I'm not sure how to do that because of the above question so I just added handling). 9e6acd9

I added the handling but I didn't implement it (I don't _think_ you requested I implement and I'm not sure how to do that because of the above question so I just added handling). 9e6acd9
akinwale commented 2020-05-30 01:46:20 +02:00 (Migrated from github.com)
Review

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.

Usually, you could use a flag to check if comments are loading and then simply return instead of sending another request to fetch the next page. I'll accept this and make some tweaks.

> Where are new comments added? I'm a little worried about comments getting added while users are scrolling. Usually, you could use a flag to check if comments are loading and then simply return instead of sending another request to fetch the next page. I'll accept this and make some tweaks.
options.put("page_size", 999);
akinwale commented 2020-05-28 10:44:30 +02:00 (Migrated from github.com)
Review

Could you change this to handle pagination by adding page and pageSize parameters? For a simple example showing how pagination works for infinite scroll, refer to PurchaseListTask and the recycler view scroll listener contentList.addScrollListener in LibraryFragment.java.

Could you change this to handle pagination by adding `page` and `pageSize` parameters? For a simple example showing how pagination works for infinite scroll, refer to `PurchaseListTask` and the recycler view scroll listener `contentList.addScrollListener` in `LibraryFragment.java`.
clay53 commented 2020-05-29 02:31:39 +02:00 (Migrated from github.com)
Review

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.
clay53 commented 2020-05-29 02:45:28 +02:00 (Migrated from github.com)
Review

I added the handling but I didn't implement it (I don't think you requested I implement and I'm not sure how to do that because of the above question so I just added handling). 9e6acd9

I added the handling but I didn't implement it (I don't _think_ you requested I implement and I'm not sure how to do that because of the above question so I just added handling). 9e6acd9
akinwale commented 2020-05-30 01:46:20 +02:00 (Migrated from github.com)
Review

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.

Usually, you could use a flag to check if comments are loading and then simply return instead of sending another request to fetch the next page. I'll accept this and make some tweaks.

> Where are new comments added? I'm a little worried about comments getting added while users are scrolling. Usually, you could use a flag to check if comments are loading and then simply return instead of sending another request to fetch the next page. I'll accept this and make some tweaks.
options.put("page", page);
akinwale commented 2020-05-28 10:44:30 +02:00 (Migrated from github.com)
Review

Could you change this to handle pagination by adding page and pageSize parameters? For a simple example showing how pagination works for infinite scroll, refer to PurchaseListTask and the recycler view scroll listener contentList.addScrollListener in LibraryFragment.java.

Could you change this to handle pagination by adding `page` and `pageSize` parameters? For a simple example showing how pagination works for infinite scroll, refer to `PurchaseListTask` and the recycler view scroll listener `contentList.addScrollListener` in `LibraryFragment.java`.
clay53 commented 2020-05-29 02:31:39 +02:00 (Migrated from github.com)
Review

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.
clay53 commented 2020-05-29 02:45:28 +02:00 (Migrated from github.com)
Review

I added the handling but I didn't implement it (I don't think you requested I implement and I'm not sure how to do that because of the above question so I just added handling). 9e6acd9

I added the handling but I didn't implement it (I don't _think_ you requested I implement and I'm not sure how to do that because of the above question so I just added handling). 9e6acd9
akinwale commented 2020-05-30 01:46:20 +02:00 (Migrated from github.com)
Review

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.

Usually, you could use a flag to check if comments are loading and then simply return instead of sending another request to fetch the next page. I'll accept this and make some tweaks.

> Where are new comments added? I'm a little worried about comments getting added while users are scrolling. Usually, you could use a flag to check if comments are loading and then simply return instead of sending another request to fetch the next page. I'll accept this and make some tweaks.
options.put("page_size", pageSize);
akinwale commented 2020-05-28 10:44:30 +02:00 (Migrated from github.com)
Review

Could you change this to handle pagination by adding page and pageSize parameters? For a simple example showing how pagination works for infinite scroll, refer to PurchaseListTask and the recycler view scroll listener contentList.addScrollListener in LibraryFragment.java.

Could you change this to handle pagination by adding `page` and `pageSize` parameters? For a simple example showing how pagination works for infinite scroll, refer to `PurchaseListTask` and the recycler view scroll listener `contentList.addScrollListener` in `LibraryFragment.java`.
clay53 commented 2020-05-29 02:31:39 +02:00 (Migrated from github.com)
Review

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.
clay53 commented 2020-05-29 02:45:28 +02:00 (Migrated from github.com)
Review

I added the handling but I didn't implement it (I don't think you requested I implement and I'm not sure how to do that because of the above question so I just added handling). 9e6acd9

I added the handling but I didn't implement it (I don't _think_ you requested I implement and I'm not sure how to do that because of the above question so I just added handling). 9e6acd9
akinwale commented 2020-05-30 01:46:20 +02:00 (Migrated from github.com)
Review

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.

Usually, you could use a flag to check if comments are loading and then simply return instead of sending another request to fetch the next page. I'll accept this and make some tweaks.

> Where are new comments added? I'm a little worried about comments getting added while users are scrolling. Usually, you could use a flag to check if comments are loading and then simply return instead of sending another request to fetch the next page. I'll accept this and make some tweaks.
options.put("include_replies", false);
options.put("is_channel_signature_valid", true);
options.put("visible", true);

akinwale commented 2020-05-28 10:44:30 +02:00 (Migrated from github.com)
Review

Could you change this to handle pagination by adding page and pageSize parameters? For a simple example showing how pagination works for infinite scroll, refer to PurchaseListTask and the recycler view scroll listener contentList.addScrollListener in LibraryFragment.java.

Could you change this to handle pagination by adding `page` and `pageSize` parameters? For a simple example showing how pagination works for infinite scroll, refer to `PurchaseListTask` and the recycler view scroll listener `contentList.addScrollListener` in `LibraryFragment.java`.
clay53 commented 2020-05-29 02:31:39 +02:00 (Migrated from github.com)
Review

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.
clay53 commented 2020-05-29 02:45:28 +02:00 (Migrated from github.com)
Review

I added the handling but I didn't implement it (I don't think you requested I implement and I'm not sure how to do that because of the above question so I just added handling). 9e6acd9

I added the handling but I didn't implement it (I don't _think_ you requested I implement and I'm not sure how to do that because of the above question so I just added handling). 9e6acd9
akinwale commented 2020-05-30 01:46:20 +02:00 (Migrated from github.com)
Review

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.

Usually, you could use a flag to check if comments are loading and then simply return instead of sending another request to fetch the next page. I'll accept this and make some tweaks.

> Where are new comments added? I'm a little worried about comments getting added while users are scrolling. Usually, you could use a flag to check if comments are loading and then simply return instead of sending another request to fetch the next page. I'll accept this and make some tweaks.
akinwale commented 2020-05-28 10:44:30 +02:00 (Migrated from github.com)
Review

Could you change this to handle pagination by adding page and pageSize parameters? For a simple example showing how pagination works for infinite scroll, refer to PurchaseListTask and the recycler view scroll listener contentList.addScrollListener in LibraryFragment.java.

Could you change this to handle pagination by adding `page` and `pageSize` parameters? For a simple example showing how pagination works for infinite scroll, refer to `PurchaseListTask` and the recycler view scroll listener `contentList.addScrollListener` in `LibraryFragment.java`.
clay53 commented 2020-05-29 02:31:39 +02:00 (Migrated from github.com)
Review

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.
clay53 commented 2020-05-29 02:45:28 +02:00 (Migrated from github.com)
Review

I added the handling but I didn't implement it (I don't think you requested I implement and I'm not sure how to do that because of the above question so I just added handling). 9e6acd9

I added the handling but I didn't implement it (I don't _think_ you requested I implement and I'm not sure how to do that because of the above question so I just added handling). 9e6acd9
akinwale commented 2020-05-30 01:46:20 +02:00 (Migrated from github.com)
Review

Where are new comments added? I'm a little worried about comments getting added while users are scrolling.

Usually, you could use a flag to check if comments are loading and then simply return instead of sending another request to fetch the next page. I'll accept this and make some tweaks.

> Where are new comments added? I'm a little worried about comments getting added while users are scrolling. Usually, you could use a flag to check if comments are loading and then simply return instead of sending another request to fetch the next page. I'll accept this and make some tweaks.

View file

@ -1872,7 +1872,7 @@ public class FileViewFragment extends BaseFragment implements
View root = getView();
ProgressBar relatedLoading = root.findViewById(R.id.file_view_comments_progress);
if (claim != null && root != null) {
CommentListTask relatedTask = new CommentListTask(claim.getClaimId(), relatedLoading, new CommentListHandler() {
CommentListTask relatedTask = new CommentListTask(1, 999, claim.getClaimId(), relatedLoading, new CommentListHandler() {
@Override
public void onSuccess(List<Comment> comments) {
Context ctx = getContext();