-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Use same patterns as Notifications* implementation (#1222)
The modifications to the Notifications* classes highlighted different (and better) ways of writing the code that manages status timelines. Follow those practices here. Changes include: - Move `pachliAccountId` in to `IStatusViewData` so the adapter does not need to be initialised with the information. This allows the parameter to be removed from functions that operate on `IStatusViewData`, and the adapter does not need to be marked `lateinit`. - Convert Fragment/ViewModel communication to use the `uiResult` pattern instead of separate `uiSuccess` and `uiError`. - Show a `LinearProgressIndicator` when refreshing the list. - Restore the reading position more smoothly by responding when the first page of results is loaded. - Save the reading position to `RemoteKeyEntity` instead of a dedicated property in `AccountEntity`. - Fixed queries for returning the row number of a notification or status in the database. Fixes #238, #872, #928, #1190
- Loading branch information
1 parent
05c68f6
commit 7bf322c
Showing
62 changed files
with
2,836 additions
and
1,395 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.