commit | 8dae83ee9bab0dcd7982c893926c2ab11d54b0cf | [log] [tgz] |
---|---|---|
author | Pinyao Ting <pinyaoting@google.com> | Mon Jul 20 11:54:38 2020 -0700 |
committer | Pinyao Ting <pinyaoting@google.com> | Tue Jul 21 00:57:17 2020 +0000 |
tree | 9995adbf1da347554d9a8a96b203e2437dc1735e | |
parent | 4527d2dbb248d9e2902989569e5b54a80e3d585f [diff] |
Fix launcher crash after restore with some specific widgets. The internal implementation of PendingAppWidgetHostView#getDefaultViews uses the same view across updates which causes the exception in AppWidgetHostView#applyContent when it tries to call addView() because the view has already been added to its parent view in previous iteration. Bug: 151901506 Test: manual Change-Id: Ieccec814ac514e592d0d4f196b60ba89aec0d661