Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 1d0e7f5d authored by Ajinkya Chalke's avatar Ajinkya Chalke
Browse files

Use the bgCoroutineContext to update note shortcut

- Application scope is using Dispatchers.Main.immediate causing ANRs
  when updating note-taking shortcuts. So using bgCoroutineContext when
  when updating note-tasks.
- Internally bgCoroutineContext uses Dispatchers.IO which should help
  avoid the ANR in SysUI.
- Using the new CoroutineScope.launch function that supports tracing to
  help debug future potential ANRs.

Bug: 311325103
Test: atest NoteTaskControllerTest
Flag: NA
Change-Id: I179d49285c7184200e11754fc0c735c55d1ed0d0
parent 7ed4970d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment