diff options
author | Riddle Hsu <riddlehsu@google.com> | 2021-07-02 14:06:22 +0800 |
---|---|---|
committer | Riddle Hsu <riddlehsu@google.com> | 2021-07-06 12:36:39 +0800 |
commit | 9a2454c59578c50057440134f1f525650985f07f (patch) | |
tree | ef274d43be287dcd036c50c6442df7f548ec65f5 /rs/java/android/renderscript/Program.java | |
parent | e085ae55d8d93adc78e9417955d401cba88b63ca (diff) |
Fix NPE caused by config change on a destroyed activity
The config callback from view root may not know the state
of activity. That may trigger a stale callback, so
- Restore the null check when getting mSizeConfigurations.
- Clear the callback if the activity will be removed.
Bug: 192603207
Test: ActivityLifecycleTopResumedStateTests
Change-Id: I17ea8fc2ba994f630d5ad7baa3de298d90a32827
Diffstat (limited to 'rs/java/android/renderscript/Program.java')
0 files changed, 0 insertions, 0 deletions