Skip to content

Potential UI thread blocking issue #305

@nbd-boss

Description

@nbd-boss

MainActivity.onCreate() synchronously calls installPrivateAssets(), which performs file I/O such as copying the Convolver / DDC / Liveprog directories and reading/writing WAV/TAR files. These operations may cause noticeable stuttering on the UI thread.

In addition, the file import logic inside handleFileIntent()—including importFile() as well as content validation such as Preset.validate() / Preset.load()—also involves time-consuming I/O, and parts of it still run on the main thread.

According to Android’s official best practices, all disk I/O should be performed on Dispatchers.IO to avoid blocking the UI thread and prevent potential ANRs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions