diff --git a/fe2-android/app/src/main/java/com/github/dedis/popstellar/ui/lao/event/rollcall/RollCallFragment.kt b/fe2-android/app/src/main/java/com/github/dedis/popstellar/ui/lao/event/rollcall/RollCallFragment.kt
index 2a03db5769..c72bd26a1e 100644
--- a/fe2-android/app/src/main/java/com/github/dedis/popstellar/ui/lao/event/rollcall/RollCallFragment.kt
+++ b/fe2-android/app/src/main/java/com/github/dedis/popstellar/ui/lao/event/rollcall/RollCallFragment.kt
@@ -30,6 +30,7 @@ import com.github.dedis.popstellar.utility.ActivityUtils.getQRCodeColor
import com.github.dedis.popstellar.utility.ActivityUtils.handleExpandArrow
import com.github.dedis.popstellar.utility.Constants.ID_NULL
import com.github.dedis.popstellar.utility.Constants.ROLL_CALL_ID
+import com.github.dedis.popstellar.utility.UIUtils
import com.github.dedis.popstellar.utility.error.ErrorUtils.logAndShow
import com.github.dedis.popstellar.utility.error.UnknownLaoException
import com.github.dedis.popstellar.utility.error.UnknownRollCallException
@@ -55,6 +56,8 @@ class RollCallFragment : AbstractEventFragment {
private val deAnonymizationWarned = MutableLiveData(false)
+ private lateinit var clipboardManager: UIUtils.ClipboardUtil
+
constructor()
override fun onCreateView(
@@ -67,7 +70,7 @@ class RollCallFragment : AbstractEventFragment {
laoViewModel = obtainViewModel(requireActivity())
rollCallViewModel = obtainRollCallViewModel(requireActivity(), laoViewModel.laoId)
-
+ clipboardManager = UIUtils.ClipboardUtil(requireActivity())
rollCall =
try {
rollCallRepo.getRollCallWithPersistentId(
@@ -147,6 +150,9 @@ class RollCallFragment : AbstractEventFragment {
handleBackNav(TAG)
+ clipboardManager.setupCopyButton(
+ binding.rollCallPopTokenTextCopyButton, binding.rollCallPopTokenText, "PoP Token Hash")
+
return binding.root
}
diff --git a/fe2-android/app/src/main/res/layout/roll_call_fragment.xml b/fe2-android/app/src/main/res/layout/roll_call_fragment.xml
index 1ab38393df..1c5985144e 100644
--- a/fe2-android/app/src/main/res/layout/roll_call_fragment.xml
+++ b/fe2-android/app/src/main/res/layout/roll_call_fragment.xml
@@ -83,13 +83,33 @@
style="@style/text_medium_title"
app:layout_constraintTop_toBottomOf="@+id/roll_call_pk_qr_code" />
-
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintTop_toBottomOf="@id/roll_call_pop_token_username">
+
+
+
+
+
+