summaryrefslogtreecommitdiff
path: root/packages/Shell/src
diff options
context:
space:
mode:
author Yanting Yang <yantingyang@google.com> 2023-06-01 16:07:13 +0800
committer Yanting Yang <yantingyang@google.com> 2023-06-01 18:07:09 +0800
commit986857c9e66be751e22db8b56cf87a74bbd2a41f (patch)
tree56b0d0343e3afd29cccb3a719be1591d12c1f925 /packages/Shell/src
parent3d137a068cde4978e9daab63492ead0179a3cfcd (diff)
Fix NPE when loading recently opened apps on the Apps page
From Android U, Settings start to support showing work profile apps on recently opened apps list on the Apps page. It will query the app entry from the cache of ApplicationsState by different user id before cache initialization. We should check mEntriesMap by user id in getEntry() and getEntryLocked() to avoid NPE since the cache might be empty before reading. Bug: 284252546 Test: robotests Change-Id: Ie4dc0821c4fe29a389f491eb4706abe352c05c5a
Diffstat (limited to 'packages/Shell/src')
0 files changed, 0 insertions, 0 deletions