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:
parent
03f3fdb76a
commit
b8b8af6304
1 changed files with 3 additions and 3 deletions
|
@ -348,10 +348,10 @@ public class EventDetailsFragment extends Fragment {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 2. Links
|
// 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();
|
int linkViewCount = holder.linksContainer.getChildCount();
|
||||||
if (linkViewCount > 2) {
|
if (linkViewCount > 1) {
|
||||||
holder.linksContainer.removeViews(2, linkViewCount - 2);
|
holder.linksContainer.removeViews(1, linkViewCount - 1);
|
||||||
}
|
}
|
||||||
if ((data.links != null) && (data.links.size() > 0)) {
|
if ((data.links != null) && (data.links.size() > 0)) {
|
||||||
holder.linksContainer.setVisibility(View.VISIBLE);
|
holder.linksContainer.setVisibility(View.VISIBLE);
|
||||||
|
|
Loading…
Reference in a new issue