-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor UserAssetActivity for readability and efficiency (#3781)
- Refactored the onOptionsItemSelected function to use `when` and `let` for cleaner conditional logic. - Simplified the `chooseFile` function with `runCatching` for better error handling. - Extracted repeated code into reusable functions to improve maintainability. - Improved coroutine handling by ensuring file I/O happens on the IO thread.
- Loading branch information
1 parent
fdfd043
commit 82087e1
Showing
1 changed file
with
22 additions
and
36 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