Add a timeout waiting for contextual card loader.
- Intially setting it to 1 second. - Also changed card appear animation from drop in to fade in. It looks less janky if we don't animate any size change. - And some random code cleanup Change-Id: I6e73bcf98fd9aa1d76ae002b94ab5b068dfecf1e Fixes: 120916829 Test: robotests
This commit is contained in:
@@ -85,11 +85,10 @@ public class ContextualCardFeatureProviderImpl implements ContextualCardFeatureP
|
||||
private static final int TARGET_SLIDER = 3;
|
||||
|
||||
@Override
|
||||
public void logHomepageDisplay(Context context, Long latency) {
|
||||
final Intent intent = new Intent();
|
||||
intent.putExtra(EXTRA_CONTEXTUALCARD_ACTION_TYPE, CONTEXTUAL_HOME_SHOW);
|
||||
intent.putExtra(EXTRA_LATENCY, latency);
|
||||
sendBroadcast(context, intent);
|
||||
public void logHomepageDisplay(Context context, long latency) {
|
||||
sendBroadcast(context, new Intent()
|
||||
.putExtra(EXTRA_CONTEXTUALCARD_ACTION_TYPE, CONTEXTUAL_HOME_SHOW)
|
||||
.putExtra(EXTRA_LATENCY, latency));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user