commit | c4d30d641a9f7312078a300e42cb18ef9678dff5 | [log] [tgz] |
---|---|---|
author | Chuck Liao <chuckliao@google.com> | Mon Jun 01 15:49:09 2020 +0800 |
committer | Chuck Liao <chuckliao@google.com> | Mon Jun 01 15:49:09 2020 +0800 |
tree | c81a758098e94a444963bace6fa8e391de9639b9 | |
parent | 16d8cb9869745f143e31157b943951f965e637db [diff] |
Add a null protection for getContext() when updating preview in theme/grid fragment. They call getContext() in a callback, so it's possible that getContext() is called after the fragment is finished. At this moment, the getContext() will return null. Bug: 157624922 Change-Id: Id18b721ccd32a82d1c1925128829fbcd00a45b88