diff --git a/app/src/main/java/org/thoughtcrime/securesms/profiles/spoofing/ReviewBannerView.java b/app/src/main/java/org/thoughtcrime/securesms/profiles/spoofing/ReviewBannerView.java index db94720f0..a4c45946d 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/profiles/spoofing/ReviewBannerView.java +++ b/app/src/main/java/org/thoughtcrime/securesms/profiles/spoofing/ReviewBannerView.java @@ -8,6 +8,7 @@ import android.util.AttributeSet; import android.view.View; import android.view.ViewOutlineProvider; import android.widget.ImageView; +import android.widget.LinearLayout; import android.widget.TextView; import androidx.annotation.NonNull; @@ -26,9 +27,7 @@ import org.thoughtcrime.securesms.util.ViewUtil; /** * Banner displayed within a conversation when a review is suggested. */ -public class ReviewBannerView extends ConstraintLayout { - - private static final @Px int ELEVATION = ViewUtil.dpToPx(4); +public class ReviewBannerView extends LinearLayout { private ImageView bannerIcon; private TextView bannerMessage; @@ -62,16 +61,6 @@ public class ReviewBannerView extends ConstraintLayout { bottomRightAvatar.setFallbackPhotoProvider(provider); bannerClose.setOnClickListener(v -> setVisibility(GONE)); - - if (Build.VERSION.SDK_INT >= 21) { - setOutlineProvider(new ViewOutlineProvider() { - @Override - public void getOutline(View view, Outline outline) { - outline.setRect(-100, -100, view.getWidth() + 100, view.getHeight() + ELEVATION); - } - }); - setElevation(ELEVATION); - } } public void setBannerMessage(@Nullable CharSequence charSequence) { diff --git a/app/src/main/res/layout/conversation_activity.xml b/app/src/main/res/layout/conversation_activity.xml index 93c042345..07512068c 100644 --- a/app/src/main/res/layout/conversation_activity.xml +++ b/app/src/main/res/layout/conversation_activity.xml @@ -196,35 +196,38 @@ - + app:layout_constraintEnd_toEndOf="@id/parent_end_guideline"> - + - + + + + + + - + android:orientation="vertical"> + + + + + + \ No newline at end of file