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

Commit 7276e63f authored by Julia Reynolds's avatar Julia Reynolds
Browse files

Wait before computing contact affinity

Instead of assuming we'll have an answer as soon as the handler
gets around to handling the rankingreconsideration.

Change-Id: Id8f2147f59abf6435d869b9ffcc5cf2c2b52f0f7
Fixes: 73010730
Test: cts-verifier
parent b2c4a554
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -468,12 +468,14 @@ public class ValidateNotificationPeople implements NotificationSignalExtractor {
        private final LinkedList<String> mPendingLookups;
        private final Context mContext;

        // Amount of time to wait for a result from the contacts db before rechecking affinity.
        private static final long LOOKUP_TIME = 1000;
        private float mContactAffinity = NONE;
        private NotificationRecord mRecord;

        private PeopleRankingReconsideration(Context context, String key,
                LinkedList<String> pendingLookups) {
            super(key);
            super(key, LOOKUP_TIME);
            mContext = context;
            mPendingLookups = pendingLookups;
        }