-
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: Restructure ViewMediaActivity and related fragments (#489)
Highlights: - Implement fragment transitions for video to improve the UX, video won't start playing until the transition completes - Remove rxJava - Move duplicate code in to base classes Details: `MediaActionsListener`: - Move to `ViewMediaFragment` as it's used by both subclasses - Remove need for separate `VideoActionsListener` - Rename methods to better reflect their purpose and improve readability `ViewMediaFragment`: - Move duplicated code from `ViewImageFragment` and `ViewVideoFragment` - Rewrite code that handles fragment transitions to use a `CompleteableDeferred` instead of `BehaviorSubject` (removes rxJava). - Rename methods and properties to better reflect their purpose and improve readability - Add extra comments `ViewImageFragment`: - Rewrite code that handles fragment transitions to use a `CompleteableDeferred` instead of `BehaviorSubject` (removes rxJava). `ViewVideoFragment`: - Implement fragment transitions for video to improve the UX, video won't start playing until the transition completes - Manage toolbar visibility with a coroutine instead of a handler - Add extra comments `ViewMediaActivity`: - Rename properties to better reflect their purpose and improve readability - Add extra comments `ImagePagerAdapter`: - Rename properties to better reflect their purpose and improve readability - Add extra comments
- Loading branch information
1 parent
72ef8cf
commit 1026fcc
Showing
5 changed files
with
206 additions
and
160 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
Oops, something went wrong.