diff --git a/res/layout/attachment_type_selector.xml b/res/layout/attachment_type_selector.xml index 85a8b294e8..9b912d0122 100644 --- a/res/layout/attachment_type_selector.xml +++ b/res/layout/attachment_type_selector.xml @@ -138,34 +138,27 @@ - - - - - - - - + + + diff --git a/src/org/thoughtcrime/securesms/components/AttachmentTypeSelector.java b/src/org/thoughtcrime/securesms/components/AttachmentTypeSelector.java index e37605d7a5..f86b3b496f 100644 --- a/src/org/thoughtcrime/securesms/components/AttachmentTypeSelector.java +++ b/src/org/thoughtcrime/securesms/components/AttachmentTypeSelector.java @@ -74,7 +74,7 @@ public class AttachmentTypeSelector extends PopupWindow { this.closeButton.setOnClickListener(new CloseClickListener()); if (Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN) { - this.locationButton.setVisibility(View.INVISIBLE); + ViewUtil.findById(layout, R.id.location_linear_layout).setVisibility(View.INVISIBLE); } setContentView(layout);