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 ...@@ -130,6 +130,10 @@ public class EventFragment extends BaseFragment implements View.OnClickListener
startActivity(Intent.createChooser(i, "Share URL")); startActivity(Intent.createChooser(i, "Share URL"));
} }
}); });
if (event.getEventWebsiteURL() != null)
{
webEventButton.setVisibility(View.VISIBLE);
}
webEventButton.setOnClickListener(new View.OnClickListener() { webEventButton.setOnClickListener(new View.OnClickListener() {
String eventwebURL = event.getEventWebsiteURL(); String eventwebURL = event.getEventWebsiteURL();
@Override @Override
......
...@@ -64,7 +64,8 @@ ...@@ -64,7 +64,8 @@
android:background="?attr/selectableItemBackgroundBorderless" android:background="?attr/selectableItemBackgroundBorderless"
android:contentDescription="Event Website" android:contentDescription="Event Website"
android:src="@drawable/ic_language_black_24dp" android:src="@drawable/ic_language_black_24dp"
android:tint="@color/colorWhite" /> android:tint="@color/colorWhite"
android:visibility="invisible"/>
<ImageButton <ImageButton
android:id="@+id/share_event_button" 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