commit | 2f8fe6bb1faaeecc590266ff1a774d2a94b8e846 | [log] [tgz] |
---|---|---|
author | Sunny Goyal <sunnygoyal@google.com> | Wed Aug 14 15:47:05 2019 -0700 |
committer | android-build-merger <android-build-merger@google.com> | Wed Aug 14 15:47:05 2019 -0700 |
tree | 3b259c11ebeffd15678963ad107273dae64bdae7 | |
parent | 214a45ee02674712542dabdb7d8c70ace21f4501 [diff] | |
parent | 7830db820560c4d354a69c66d9eab3ccc1d66261 [diff] |
Merging ub-launcher3-qt-r1-dev, build 5800211 am: 26bf127983 am: 04d97d9da3 am: 7830db8205 Change-Id: I94fd54c629a3fa5e7576ab910514430b5616e851
diff --git a/quickstep/recents_ui_overrides/src/com/android/launcher3/appprediction/PredictionAppTracker.java b/quickstep/recents_ui_overrides/src/com/android/launcher3/appprediction/PredictionAppTracker.java index 8f1282d..24fc61b 100644 --- a/quickstep/recents_ui_overrides/src/com/android/launcher3/appprediction/PredictionAppTracker.java +++ b/quickstep/recents_ui_overrides/src/com/android/launcher3/appprediction/PredictionAppTracker.java
@@ -95,6 +95,10 @@ private AppPredictor createPredictor(Client client, int count) { AppPredictionManager apm = mContext.getSystemService(AppPredictionManager.class); + if (apm == null) { + return null; + } + AppPredictor predictor = apm.createAppPredictionSession( new AppPredictionContext.Builder(mContext) .setUiSurface(client.id)