OSDN Git Service

Skip using the AppPredictionService if the component is not available
authorMehdi Alizadeh <mett@google.com>
Thu, 15 Aug 2019 23:31:38 +0000 (16:31 -0700)
committerMehdi Alizadeh <mett@google.com>
Fri, 16 Aug 2019 23:57:46 +0000 (23:57 +0000)
commita1c18a81afaa03354478e929e1b071193683e5fe
treecc3f0e857f1b6301930211825910ff17e93f1d9b
parent37e74a84209e6ed2dc50feb6f00abf882f392202
Skip using the AppPredictionService if the component is not available

This CL adds a safeguard in ShareSheet to avoid calls to
AppPredictionService when the service is defined but is not available,
for example in the case of a wrong AiAi apk pushed from GooglePlay.

Bug: 138595943
Test: Manual test by removing the AiAi package from device

Change-Id: I4109c5122faa753d5111ee45698301cb6ccdd7b5
core/java/com/android/internal/app/ChooserActivity.java