Commit 01cd4326 authored by mayu's avatar mayu

Invisible for blank url

parent cdef3696
......@@ -130,6 +130,10 @@ public class EventFragment extends BaseFragment implements View.OnClickListener
startActivity(Intent.createChooser(i, "Share URL"));
}
});
if (event.getEventWebsiteURL() != null)
{
webEventButton.setVisibility(View.VISIBLE);
}
webEventButton.setOnClickListener(new View.OnClickListener() {
String eventwebURL = event.getEventWebsiteURL();
@Override
......
......@@ -64,7 +64,8 @@
android:background="?attr/selectableItemBackgroundBorderless"
android:contentDescription="Event Website"
android:src="@drawable/ic_language_black_24dp"
android:tint="@color/colorWhite" />
android:tint="@color/colorWhite"
android:visibility="invisible"/>
<ImageButton
android:id="@+id/share_event_button"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment