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
This commit is contained in:
Yi-Ling Chuang
2020-05-28 20:05:15 +08:00
parent e7d1c822fc
commit 9d789ee7ba
2 changed files with 2 additions and 2 deletions

View File

@@ -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())) {

View File

@@ -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;