commit | 80e58087dbe6c0ea1ac43696cd9d4d36cfa7b080 | [log] [tgz] |
---|---|---|
author | Tony Huang <tonyychuang@google.com> | Fri Dec 13 15:47:19 2019 +0800 |
committer | Tony Huang <tonyychuang@google.com> | Fri Dec 13 15:50:17 2019 +0800 |
tree | 8992ddbb2782b7834780dfdfb94f8f69355d2ac9 | |
parent | 20c326c34653d8ddc58f06ce76474ba3d175126b [diff] |
Fix ANR in MultiRootDocumentsLoader ANR might occure in MultiRootDocumentsLoader onReset because this call on main thread. We call close task while onReset but task close call will be blocked by runInternal then cause block on main thread. Use Executor to let close task run in other thread to avoid ANR. Fix: 126154768 Fix: 144074028 Test: manual Test: atest DocumentsUIGoogleTests Change-Id: I6ce6b9583d146b1e53784b4c7aec3e54f1808da0