Skip to content
Commit dd2636a4 authored by Songchun Fan's avatar Songchun Fan
Browse files

Fix NPE in AppsFilter

Previously we used pmInternal to get shared user packages from package
setting. This has two issues:

1) pmInternal is null in the snapshotted version of AppsFilter which
   leads to NPE and system crashes.
2) The pmInternal method uses the snapshotted computer which means we
   are mixing live data (from mStateProvider) and snapshot data.

This CL fixes it by including all the share user packages info in the
StateProvider and force using live data for getting the shared user
packages.

BUG: 226668722
Test: atest AppsFilterImplTest
Change-Id: I5580e24382e4a1b9d3e41821def714af0899b822
parent 7605f736
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment