Simplify app prediction service check
In support of sharesheet unbundling:
This change removes the use of the passed in boolean flag to
determine AppPredictionService availability and instead falls
back checking for a non null value from
PackageManager#getAppPredictionServicePackage()
This PackageManager call can now be made directly from outside
of system_server, enabling progress towards sharesheet unbundling.
Bug: 220895016
Test: Enable unbundled sharesheet; share app content; observe share targets
Change-Id: I3bb962dd750dfeb23be7aba668ef7d9de0ef4ce1
1 file changed