Commit b28b3af7 authored by Shakti Sahu's avatar Shakti Sahu Committed by Commit Bot

Query Tiles : Disable animations

This CL disables tile animations which fixes the crash. We will have a
better fix to handle stale animations correctly in M85.

Bug: 1096437
Change-Id: I5389707703c587aea0576699217f443ce6852953
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2252563
Commit-Queue: Shakti Sahu <shaktisahu@chromium.org>
Reviewed-by: default avatarDavid Trainor <dtrainor@chromium.org>
Cr-Commit-Position: refs/heads/master@{#780070}
parent 96c6156f
......@@ -86,12 +86,7 @@ class TileListView {
* Called to show enter animation for the list items.
*/
void showAnimation(boolean animate) {
if (animate) {
mView.setLayoutAnimation(mLayoutAnimationController);
mView.scheduleLayoutAnimation();
} else {
mView.setLayoutAnimation(null);
}
// TODO(shaktisahu): Fix animations.
}
private class ItemDecorationImpl extends ItemDecoration {
......
......@@ -54,7 +54,7 @@ class TileMediator {
"Search." + mConfig.umaPrefix + ".Bitmap.Available", visualsAvailable);
String fetchDurationHistogramName = "Search." + mConfig.umaPrefix
+ (visualsAvailable ? ".Bitmap " : ".NoBitmap") + ".FetchDuration";
+ (visualsAvailable ? ".Bitmap" : ".NoBitmap") + ".FetchDuration";
RecordHistogram.recordTimesHistogram(fetchDurationHistogramName, durationMs);
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment