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

Commit 96129fb7 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix another layout casting crash that happens sometimes"

parents 5f73f444 ee223952
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -33,6 +33,7 @@ import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.android.internal.graphics.ColorUtils;
@@ -251,7 +252,7 @@ public class BubbleView extends FrameLayout implements BubbleTouchHandler.Floati
            // HACK: release() will crash if the view is not attached.

            mActivityView.setVisibility(View.GONE);
            tmpParent.addView(mActivityView, new ViewGroup.LayoutParams(
            tmpParent.addView(mActivityView, new LinearLayout.LayoutParams(
                    ViewGroup.LayoutParams.MATCH_PARENT,
                    ViewGroup.LayoutParams.MATCH_PARENT));
        }