Amine Bouabdallaoui AmineB
AmineB opened issue Louvorg/ReaderForSelfoss-multiplatform#41 2022-08-26 11:43:10 +00:00
Better handling of reloading content when inside the app
AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#40 2022-08-26 11:40:13 +00:00
WIP: HomeActivity cleanup

Ok, great ! I'll let you know when I finish my refactoring.

AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#40 2022-08-26 07:42:34 +00:00
WIP: HomeActivity cleanup

That makes sens, but I still thinks the app needs to refresh onReload.

We could try to find a way to differenciate between "going back from another activity of the app" and "relaunching the…

AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#40 2022-08-25 18:43:11 +00:00
WIP: HomeActivity cleanup

Every time I go back to the articles list the fetching starts, which is annoying because of the loading spinner appearing at the top each time.

Why don't you swipe between the articles ? …

AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#40 2022-08-25 18:21:40 +00:00
WIP: HomeActivity cleanup

When init is run the connectivity check always fails.

So this is a bug that should be fixed instead of having this workaround.

This allows retrieving the badges every time connectivity…

AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#40 2022-08-25 18:18:22 +00:00
WIP: HomeActivity cleanup

updateRemote doesn't necessarily have to be there, I have done it because I think it makes it easier to read through the activity code.

I find it more difficult to read. Moving some code…

AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#40 2022-08-25 16:30:17 +00:00
WIP: HomeActivity cleanup

it can be used to prevent making an api call every time you close an article and come back to the article list

this is intended to fetch the new articles as soon as possible.

AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#40 2022-08-25 12:07:31 +00:00
WIP: HomeActivity cleanup

Why were these moved here ?

AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#40 2022-08-25 12:07:31 +00:00
WIP: HomeActivity cleanup

I don't think that this should be here. Each activity/fragment should know what they want to display, and how.

AmineB suggested changes for Louvorg/ReaderForSelfoss-multiplatform#40 2022-08-25 12:07:31 +00:00
WIP: HomeActivity cleanup

I did a quick review, but as I'll clean some code, don't spend much time on this for now.

AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#40 2022-08-25 12:07:30 +00:00
WIP: HomeActivity cleanup

This way better !

AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#40 2022-08-25 12:07:30 +00:00
WIP: HomeActivity cleanup

The view/activity/fragment should be the one that knows when to display the refresh loading or not.

AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#40 2022-08-25 12:07:30 +00:00
WIP: HomeActivity cleanup

The view should call the repository and get the data from there.

AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#40 2022-08-25 12:07:30 +00:00
WIP: HomeActivity cleanup

Why did you remove this ?

AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#40 2022-08-25 12:07:30 +00:00
WIP: HomeActivity cleanup

I already started refactoring this, so I'll handle this.

AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#40 2022-08-25 12:07:30 +00:00
WIP: HomeActivity cleanup

resetDBSourcesWithData should only be done if network the api call was done, and if update_sources setting is set to false.

AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#40 2022-08-25 12:07:30 +00:00
WIP: HomeActivity cleanup

resetDBTagsWithData should only be done if network the api call was done, and if update_sources setting is set to false.

AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#40 2022-08-25 12:07:30 +00:00
WIP: HomeActivity cleanup

updateApiVersion() and reloadBadges() both check the network availability. This change isn't needed.

AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#40 2022-08-25 12:05:38 +00:00
WIP: HomeActivity cleanup

I already started refactoring this, so I'll handle this.

AmineB commented on pull request Louvorg/ReaderForSelfoss-multiplatform#40 2022-08-25 11:42:36 +00:00
WIP: HomeActivity cleanup

Thanks !