summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Mady Mellor <madym@google.com> 2019-01-23 13:25:22 -0800
committer Mady Mellor <madym@google.com> 2019-01-23 13:26:31 -0800
commitee2239525c8d818f67ad40539dad9aafc30cb3d6 (patch)
treeabf3c959542e54c8aad687884bea3c18bf2e5ce7
parentc2bca7b7452c45b3ed04d8b1afd6b2390ccebb9e (diff)
Fix another layout casting crash that happens sometimes
Test: tap outside expanded activity view based bubble, doesn't crash Change-Id: I4e47e96d88c7a89cf159e7fd6bcb9e948f0eeeb0
-rw-r--r--packages/SystemUI/src/com/android/systemui/bubbles/BubbleView.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/bubbles/BubbleView.java b/packages/SystemUI/src/com/android/systemui/bubbles/BubbleView.java
index 91893ef3db00..eab292221a6e 100644
--- a/packages/SystemUI/src/com/android/systemui/bubbles/BubbleView.java
+++ b/packages/SystemUI/src/com/android/systemui/bubbles/BubbleView.java
@@ -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));
}