diff options
| author | 2019-09-06 18:20:27 -0700 | |
|---|---|---|
| committer | 2019-09-06 18:20:27 -0700 | |
| commit | 40a6b47ff94e91566c0a3c73f56a89ffce315341 (patch) | |
| tree | 53e559db7096fe11a3649bdb428ae0235d8af35e | |
| parent | b5d4ff67d65fd41aa696076da1ec87d9f277492d (diff) | |
| parent | ae4ab469bf9d00ebdf83318bc57effffb47bd50a (diff) | |
Merge "Check for component availability before all AppPrediction logic" into qt-qpr1-dev
am: ae4ab469bf
Change-Id: I802a131a3503348ae107f37a380e3e78c9e0e2cf
| -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<>(); |