From 759ecbc7b82be80261164d392875bb237764ed6f Mon Sep 17 00:00:00 2001 From: agrajaghh Date: Fri, 25 Dec 2015 13:51:51 +0100 Subject: [PATCH] completely hide location button on API < 16 Closes #4964 // FREEBIE --- res/layout/attachment_type_selector.xml | 37 ++++++++----------- .../components/AttachmentTypeSelector.java | 2 +- 2 files changed, 16 insertions(+), 23 deletions(-) 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);