| commit | fdeee141d926f578b2878861dd0635ef073316bd | [log] [tgz] |
|---|---|---|
| author | Steven Ng <stevenckng@google.com> | Wed Feb 24 10:16:54 2021 +0000 |
| committer | Steven Ng <stevenckng@google.com> | Wed Feb 24 22:01:06 2021 +0000 |
| tree | b63d98c25f0d443180540a0890e81a96053861b9 | |
| parent | 1408c6459ca76f29329eea219b39c3eda8a46a55 [diff] |
Replace the no preview layout check with Resources.ID_NULL(0)
TODO: open up the RemoteViews(ApplicationInfo) API so that Launcher
can inflate a layout from a work profile app.
Test: Before this CL, install tasks app in work profile. Observed
crash when tapping Tasks header in the widgets picker.
After this CL, no crash observed when tapping Tasks header in
the widgets picker.
Bug: 181061277
Change-Id: I16c2b9aec5f4cabf15da35fea09f68c10797f5fa