commit | 98c58a00fda1bf1e54ae2681a87ea92b3d337faa | [log] [tgz] |
---|---|---|
author | João Victor Mendes Freire <jvfreire@google.com> | Wed Nov 30 19:03:22 2022 +0000 |
committer | João Victor Mendes Freire <jvfreire@google.com> | Fri Dec 02 12:46:33 2022 +0000 |
tree | b930facb40599d43f18395095d3db6f746f0fcfc | |
parent | 35a3004491e98b4affbab79a26fd139b3b3100bb [diff] |
Fix settings crash on users page on config change The background task loses the reference to the Activity once it is destroyed and recreated after a config change (such as screen rotation). This resulted in getContext() returning null and openUserDetails() crashing. To fix this, we simply store the context before dispatching the background worker. Bug: 256021119 Test: manually tested Change-Id: I3399fa5586de0cb5fc159204166f92902dd42de0