diff options
| author | 2019-09-06 18:20:22 -0700 | |
|---|---|---|
| committer | 2019-09-06 18:20:22 -0700 | |
| commit | 74e3e2b5dae51d49ad9c307aff2d503524986de6 (patch) | |
| tree | 337d122ca0b99437ea740d6d36b061996dcf56e0 | |
| parent | b47d6c111cf21070f66484c141fd5b4f23d8a520 (diff) | |
| parent | ae4ab469bf9d00ebdf83318bc57effffb47bd50a (diff) | |
Merge "Check for component availability before all AppPrediction logic" into qt-qpr1-dev
am: ae4ab469bf
Change-Id: I43e4df6324bb22c0cfb72a0aaaa2d28fc3840181
| -rw-r--r-- | core/java/com/android/internal/app/ChooserActivity.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/java/com/android/internal/app/ChooserActivity.java b/core/java/com/android/internal/app/ChooserActivity.java index faeecda7250c..de77aaae1653 100644 --- a/core/java/com/android/internal/app/ChooserActivity.java +++ b/core/java/com/android/internal/app/ChooserActivity.java @@ -493,6 +493,9 @@ public class ChooserActivity extends ResolverActivity { @Override protected void onCreate(Bundle savedInstanceState) { final long intentReceivedTime = System.currentTimeMillis(); + // This is the only place this value is being set. Effectively final. + mIsAppPredictorComponentAvailable = isAppPredictionServiceAvailable(); + mIsSuccessfullySelected = false; Intent intent = getIntent(); Parcelable targetParcelable = intent.getParcelableExtra(Intent.EXTRA_INTENT); @@ -619,9 +622,6 @@ public class ChooserActivity extends ResolverActivity { .addTaggedData(MetricsEvent.FIELD_SHARESHEET_MIMETYPE, target.getType()) .addTaggedData(MetricsEvent.FIELD_TIME_TO_APP_TARGETS, systemCost)); - // This is the only place this value is being set. Effectively final. - mIsAppPredictorComponentAvailable = isAppPredictionServiceAvailable(); - AppPredictor appPredictor = getAppPredictorForDirectShareIfEnabled(); if (appPredictor != null) { mDirectShareAppTargetCache = new HashMap<>(); |