forked from jensstein/oandbackup
-
Notifications
You must be signed in to change notification settings - Fork 162
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Guidelines
- I have read the FAQ and it doesn't cover the issue.
- I have searched the issue tracker for open and closed issues that are similar to the feature request I want to file, without success.
- I'm on the latest version.
- I'm not using a test build (alpha/beta/release-candidate).
- This issue contains only one bug.
Describe the bug
Running the time-consuming operation of launching a shell subprocess and waiting for its return on the UI thread may cause the UI thread to become blocked.
Expected Behavior
This operation does not run on the UI thread.
Neo Backup's Version
8.3.14
Installation Source
Official F-Droid repo
Last Known Working Version
No response
Relevant information
In the onCreate function of NeoActivity.kt, the method checkRootEquivalent() is called synchronously.
Since this method executes shell commands in a blocking manner, it may freeze the main thread during app startup.
It is recommended to move this call off the UI thread to avoid performing time-consuming operations on the main thread and improve startup performance.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working