commit | 07f2086ecda884de8843eb03bc303e8db1022283 | [log] [tgz] |
---|---|---|
author | Arc Wang <arcwang@google.com> | Thu May 27 10:27:24 2021 +0800 |
committer | Arc Wang <arcwang@google.com> | Thu May 27 10:27:24 2021 +0800 |
tree | a05d0ab4c0f37fba4a960b521ef69cbaf83bb8a7 | |
parent | a4fc228b55288c27bbf50dfbb43d6d53e119d949 [diff] |
Fix NPE at Storage Settings configuration change At configuration change, both StorageCategoryFragment and ProfileSelectStorageFragment are re-created and there is a different callback sequence than normal case. This change save/restore mSelectedStorageEntry in instance state bundle to fix the NPE. Bug: 189108700 Test: manual Install work profile and rotate Storage Settings. Change-Id: I39d7ef7ced22188ee66216d57518198d63671e0e