Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 373f5718 authored by Hyunyoung Song's avatar Hyunyoung Song
Browse files

Fixing a crash/ Launcher3 doesn't have predicted apps

Change-Id: Id405e6d077f8b4c3fb399d4a613d6013dca5cddc
parent 6470cf44
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -106,9 +106,11 @@ public abstract class UserEventDispatcher {
        if (cn != null) {
            event.srcTarget[idx].packageNameHash = cn.getPackageName().hashCode();
            event.srcTarget[idx].componentHash = cn.hashCode();
            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.
        event.elapsedContainerMillis = System.currentTimeMillis() - mElapsedContainerMillis;