Merge "Fixing a crash/ Launcher3 doesn\'t have predicted apps" into ub-launcher3-calgary

am: 4dcd8ffecc

* commit '4dcd8ffecc5bbdc5c7496cea4eb6808f4026bf9e':
  Fixing a crash/ Launcher3 doesn't have predicted apps

Change-Id: I999591077dfd0c55f9a97533044d60864018c97b
This commit is contained in:
Hyunyoung Song
2016-05-11 20:34:15 +00:00
committed by android-build-merger
@@ -106,8 +106,10 @@ public abstract class UserEventDispatcher {
if (cn != null) {
event.srcTarget[idx].packageNameHash = cn.getPackageName().hashCode();
event.srcTarget[idx].componentHash = cn.hashCode();
event.srcTarget[idx].predictedRank = mPredictedApps.indexOf(
new ComponentKey(cn, itemInfo.user));
if (mPredictedApps != null) {
event.srcTarget[idx].predictedRank = mPredictedApps.indexOf(
new ComponentKey(cn, itemInfo.user));
}
}
// Fill in the duration of time spent navigating in Launcher and the container.