commit | 296ed3b82a1a4b82a25178e71fc043915ea239f4 | [log] [tgz] |
---|---|---|
author | Sunny Goyal <sunnygoyal@google.com> | Wed Aug 14 16:07:12 2019 -0700 |
committer | android-build-merger <android-build-merger@google.com> | Wed Aug 14 16:07:12 2019 -0700 |
tree | 3b259c11ebeffd15678963ad107273dae64bdae7 | |
parent | 2f8fe6bb1faaeecc590266ff1a774d2a94b8e846 [diff] | |
parent | 9c0f711db65c81e89d7de69292aa3260b210239e [diff] |
Merging ub-launcher3-qt-r1-dev, build 5800211 am: 26bf127983 am: d8ccc772c3 am: 9c0f711db6 Change-Id: Ia70c938b6c00f42075f8505a9a529777f079280b
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)