commit | 356fe97185b4bcc838dd9d366ea1a671a082c72b | [log] [tgz] |
---|---|---|
author | Jacky Wang <jiannan@google.com> | Tue Dec 17 09:52:36 2024 +0800 |
committer | Jacky Wang <jiannan@google.com> | Tue Dec 17 17:17:15 2024 +0800 |
tree | 4c2125615b6b39b7a7b7884d3401e49c1fe030e2 | |
parent | 87ce9dbbcf69f632189a4fe433d964f95a8b4819 [diff] |
Fix potential OOM caused by DataProcessManager The AsyncTasks started in DataProcessManager are not cancelled when fragment is closed. Introduce helper class LifecycleAwareAsyncTask to cancel AsyncTask automatically when lifecycle is stopped. Bug: 384473507 Flag: EXEMPT bug fix Test: Unit test & open/close battery usage screen 1000 times Change-Id: I060f559fa85cc5feb9a42cb8dcc0581782a91d09