diff --git a/app/src/main/java/org/openobservatory/ooniprobe/activity/overview/RevisionsView.kt b/app/src/main/java/org/openobservatory/ooniprobe/activity/overview/RevisionsView.kt index aeb425846..aa83fb8ac 100644 --- a/app/src/main/java/org/openobservatory/ooniprobe/activity/overview/RevisionsView.kt +++ b/app/src/main/java/org/openobservatory/ooniprobe/activity/overview/RevisionsView.kt @@ -83,6 +83,24 @@ class RevisionsFragment : Fragment() { }) } } + if ((revisions?.revisions?.size ?: 0) > 5) { + binding.seeMore.apply { + visibility = View.VISIBLE + setOnClickListener { + startActivity( + Intent( + Intent.ACTION_VIEW, + Uri.parse( + "%s/revisions/%s".format( + BuildConfig.OONI_RUN_DASHBOARD_URL, + runId + ) + ) + ) + ) + } + } + } return binding.root } diff --git a/app/src/main/res/layout/fragment_revisions.xml b/app/src/main/res/layout/fragment_revisions.xml index 7965da163..afc267f91 100644 --- a/app/src/main/res/layout/fragment_revisions.xml +++ b/app/src/main/res/layout/fragment_revisions.xml @@ -22,4 +22,14 @@ android:layout_height="match_parent" app:layoutManager="LinearLayoutManager" tools:listitem="@layout/item_text" /> + + \ No newline at end of file