Commit e5dcd97d authored by Clemens Arbesser's avatar Clemens Arbesser Committed by Commit Bot

[Autofill Assistant] Fixed recently introduced crash upon showing details.

This relates to http://crrev/c/1340940 , where the class of the bottombar layout was changed in autofill_assistant_sheet.xml, but not in the corresponding cast in BottomBarAnimations.java:setBottomBarHeight().

Bug: 806868
Change-Id: Id2bd5bf41862afe7e8425188a2fc048c478726c8
Reviewed-on: https://chromium-review.googlesource.com/c/1356981Reviewed-by: default avatarMathias Carlen <mcarlen@chromium.org>
Commit-Queue: Clemens Arbesser <arbesser@google.com>
Cr-Commit-Position: refs/heads/master@{#612702}
parent 8b7b9fc5
......@@ -7,11 +7,11 @@ package org.chromium.chrome.browser.autofill_assistant.ui;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.ValueAnimator;
import android.support.design.widget.CoordinatorLayout;
import android.util.DisplayMetrics;
import android.util.TypedValue;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.LinearLayout;
import org.chromium.base.Callback;
......@@ -159,8 +159,8 @@ public class BottomBarAnimations {
}
private void setBottomBarHeight(int targetHeight) {
FrameLayout.LayoutParams layoutParams =
(FrameLayout.LayoutParams) mBottomBarView.getLayoutParams();
CoordinatorLayout.LayoutParams layoutParams =
(CoordinatorLayout.LayoutParams) mBottomBarView.getLayoutParams();
layoutParams.height = targetHeight;
mBottomBarView.setLayoutParams(layoutParams);
}
......
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