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

Commit 9d789ee7 authored by Yi-Ling Chuang's avatar Yi-Ling Chuang
Browse files

Increase the timeout for contextual card loading.

Some cards require a bit more time to be loaded, so relax the timeout a
bit. After tweaking the time, the overall loading time seems decreased.

Fixes: 152365480
Test: rebuild and launch
Change-Id: Icc2f66b28a377bd8ce230f8a9918b8f1f164f4ff
parent e7d1c822
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -57,7 +57,7 @@ public class ContextualCardLoader extends AsyncLoaderCompat<List<ContextualCard>
    static final int CARD_CONTENT_LOADER_ID = 1;

    private static final String TAG = "ContextualCardLoader";
    private static final long ELIGIBILITY_CHECKER_TIMEOUT_MS = 250;
    private static final long ELIGIBILITY_CHECKER_TIMEOUT_MS = 300;

    private final ContentObserver mObserver = new ContentObserver(
            new Handler(Looper.getMainLooper())) {
+1 −1
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ import java.util.concurrent.TimeUnit;
public class EligibleCardChecker implements Callable<ContextualCard> {

    private static final String TAG = "EligibleCardChecker";
    private static final long LATCH_TIMEOUT_MS = 200;
    private static final long LATCH_TIMEOUT_MS = 300;

    private final Context mContext;