Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark news as read #590

Closed
derflasher opened this issue Oct 30, 2017 · 18 comments
Closed

Mark news as read #590

derflasher opened this issue Oct 30, 2017 · 18 comments

Comments

@derflasher
Copy link

Hi there!

When I scroll too fast through the news, sometimes the news aren't mark as read while using this function.
Is it a bug or a feature?

@David-Development
Copy link
Member

Well.. It's a feature :)

... just kidding .. yea.. I think it's because the scrolling is "too fast". I think that the listview is not triggering the "scroll" event fast enough. The result is, that some rows will be skipped (not marked as read).

Since you are scrolling really fast I guess you are not interested in the feeds and you simply want to mark them as read, right? Maybe you can use the option "mark all as read" instead.

@derflasher
Copy link
Author

Yes and no.

Sometimes I read the headlines of the feeds very fast and they ain't marked as read....
Sometimes I just want to mark the first few feeds as read, but not the entire subscription. Because some older feeds should not be marked as read.

@David-Development
Copy link
Member

Did the update solve the problem? Or is it still buggy?

@derflasher
Copy link
Author

This works better, yes! Good job!
But: If the feed list is less than a screen-height, the feeds ain't marked as read :-(
You have to mark them manually as read....

@David-Development
Copy link
Member

Yes, that is true. What would be the expected behavior?

I was thinking about marking them as read automatically. However, if you open a list by accident (which has less unread items than the screen-height), all items in this list will be marked as read. And you have to unmark them manually. That's why I decided to leave the user to mark those items as read manually.

@derflasher
Copy link
Author

Yes, the unwanted mark-as-read-process is annoying.

I suggest to add an extra field at the end of the list:
Press here to mark feeds above this line as read!

What do you think about that?
ncnews-example

@David-Development
Copy link
Member

Thanks for the suggestion. It is not that trivial to add such an additional line. Furthermore there is a "risk" involved here. Assume the following case: Let's say your screen can contain 8,1 Elements. And you have 8 unread items in a feed. Therefore by opening the feed you would see all 8 items and you can't scroll since they all fit on the screen. Adding an additional line would require the user to scroll down in order to see, that the last item is only there to mark the above as read. But as the user scrolls, the list will be marked as read anyways. Just a little paradox.. In terms of simple design I would prefer no additional visual elements. Maybe I can check if the users touches the list (does a scroll movement) that the all items in the list will be marked as read.

@derflasher
Copy link
Author

Yes, you're right with your example.

What about this solution:
You split the screen in 2 sides. On the left side, you can swipe from left to right in order to open the menu and not to mark the feeds accidently read. The right side is to mark the feeds as read.
This doesn't require any visual elements...

@morph027
Copy link

I was using feedly before (and finally migrated over to my nextcloud with news now) ... I liked their android app, they are swiping whole pages instead of scrolling the items.

So let's say you have 10 feed items per page, then you swipe up get the next 10 and so on and the last page was a single page with just one button "mark all as read" ;)

@derflasher
Copy link
Author

In the latest F-Droid-version has the behaviour changed.
The feeds all marked read if sliding the menu from the left to the right.....
In the previous F-Droid-version the feeds haven't been marked read.
Is it just a version-bug or did you intended to chang it?

@David-Development
Copy link
Member

David-Development commented Nov 11, 2018

@derflasher No, we did not intent to get this kind of behaviour. As you can see in #633 we had some problems when the list is almost empty, the swipe/scroll was not recognized. Therefore we changed the swipe detector. I need to investigate this issue a little more to give some more feedback.

ping @AnotherDaniel

@AnotherDaniel
Copy link
Contributor

@derflasher can you explain in detail what you are doing to get the undesired behavior?
I'm trying to slide everything to anywhere, but I don't think I'm getting whatever happens for you.

@derflasher
Copy link
Author

Sure, you've got mail :-)

@AnotherDaniel
Copy link
Contributor

@derflasher thank you for the video - and: crap, it definitely shouldn't do that, and I can't replicate this yet. What are your general settings?

@David-Development
Copy link
Member

David-Development commented Nov 12, 2018

@AnotherDaniel Just watched the video and I think the reason is, that the swipe is performed "over" the recyclerview. Therefore the recyclerview is picking up that event. Also the swipe in the video is going upwards (downwards shouldn't be a problem). I guess the "mark as read while scrolling" feature is enabled.

I think the following line is the problem:

if(mMarkAsReadWhileScrollingEnabled && (e2.getY() - e1.getY()) < 0) { // (distance < 0) => scroll up

There is also a second line that is calling the scroll event (however that line shouldn't be problematic..):

Another important prerequisite: The number of unread items might not exceed the screen. Since we're already on the bottom of the screen, all remaining items will be marked as read.

@derflasher
Copy link
Author

@derflasher thank you for the video - and: crap, it definitely shouldn't do that, and I can't replicate this yet. What are your general settings?
screenshot_20181112-122540
screenshot_20181112-122547

@AnotherDaniel
Copy link
Contributor

Ok - I'm on a business trip this week, so can only have a more detailed look at this Friday-ish; but I just managed to replicate the undesired behavior so that's something...

AnotherDaniel added a commit to AnotherDaniel/news-android that referenced this issue Nov 16, 2018
AnotherDaniel added a commit to AnotherDaniel/news-android that referenced this issue Nov 16, 2018
AnotherDaniel added a commit to AnotherDaniel/news-android that referenced this issue Nov 17, 2018
AnotherDaniel added a commit to AnotherDaniel/news-android that referenced this issue Nov 17, 2018
(cherry picked from commit bca3756)
AnotherDaniel added a commit to AnotherDaniel/news-android that referenced this issue Nov 17, 2018
AnotherDaniel added a commit to AnotherDaniel/news-android that referenced this issue Nov 17, 2018
(cherry picked from commit bca3756)
AnotherDaniel added a commit that referenced this issue Dec 12, 2018
#590 - attempt to fix inadvertet mark-read on menu-bar pull
@David-Development
Copy link
Member

I think this is fixed now thanks to @AnotherDaniel. If you encounter any further issues.. please let me know and reopen!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants