1
0
Fork 0
mirror of https://github.com/MatomoCamp/matomocamp-companion-android.git synced 2024-09-19 16:13:46 +02:00

Fix: properly clear the links container view with the new layout in EventDetailsFragment.

This commit is contained in:
Christophe Beyls 2015-01-18 15:58:57 +01:00
parent 03f3fdb76a
commit b8b8af6304

View file

@ -348,10 +348,10 @@ public class EventDetailsFragment extends Fragment {
}
// 2. Links
// Keep the first 2 views in links container (titles) only
// Keep the first view in links container (title) only
int linkViewCount = holder.linksContainer.getChildCount();
if (linkViewCount > 2) {
holder.linksContainer.removeViews(2, linkViewCount - 2);
if (linkViewCount > 1) {
holder.linksContainer.removeViews(1, linkViewCount - 1);
}
if ((data.links != null) && (data.links.size() > 0)) {
holder.linksContainer.setVisibility(View.VISIBLE);