-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Refactor DefaultLoadBitmapUseCase
to receive orientation as argument
#27290
Refactor DefaultLoadBitmapUseCase
to receive orientation as argument
#27290
Comments
Will be happy to contribute here! One question: I guess I also need to provide filesDir as a param, since we are getting it from context too: |
Great, thanks for helping out!
That's correct. The |
Then, I guess, I could contribute here :) |
@mbaimuratov are you still working on with this ? |
Hey @MatthewTighe, I would like to work on this issue. I have created this PR #27730 . How do I test if my changes are correct? |
…ive orientation as argument
…ceive orientation as and files directory as argument
…ceive orientation and files directory as argument
…ion and files directory as argument
…pUseCase to receive orientation and files directory as argument
The
WallpaperUseCases.DefaultLoadBitmapUseCase
currently accepts aContext
as an argument. It then determines the current device orientation inline in order to load the correct (landscape/portrait) bitmap for a wallpaper.By removing the
Context
parameter and replacing it with the orientation, the function should be more testable and maintainable. It is also the onlyContext
-dependent part of the updated Use Cases and is a copied holdover from the legacy versions, so it will mean we should be able to completely remove Context fromWallpaperUseCases
after #26968┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: