From cc436a98e7e9ebc58686b4fe3b755155049ca721 Mon Sep 17 00:00:00 2001 From: Denzil Ferreira Date: Sat, 28 Mar 2020 11:19:43 +0200 Subject: [PATCH] - lock participant onboarding label if one has been pre-determined. --- .../main/java/com/aware/phone/ui/Aware_Join_Study.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/aware-phone/src/main/java/com/aware/phone/ui/Aware_Join_Study.java b/aware-phone/src/main/java/com/aware/phone/ui/Aware_Join_Study.java index a369cca36..5a89f21f6 100755 --- a/aware-phone/src/main/java/com/aware/phone/ui/Aware_Join_Study.java +++ b/aware-phone/src/main/java/com/aware/phone/ui/Aware_Join_Study.java @@ -7,6 +7,7 @@ import android.content.pm.PackageManager; import android.database.Cursor; import android.database.DatabaseUtils; +import android.graphics.Color; import android.net.Uri; import android.os.AsyncTask; import android.os.Bundle; @@ -108,10 +109,17 @@ public void afterTextChanged(Editable s) { if (Aware.DEBUG) Log.d(Aware.TAG, "AWARE Study participant ID detected: " + onboarding); study_url = study_url.substring(0,study_url.indexOf("participant")-1); if (Aware.DEBUG) Log.d(Aware.TAG, "AWARE Study URL: " + study_url); + participant_label.setText(onboarding); + participant_label.setFocusable(false); + participant_label.setEnabled(false); + participant_label.setCursorVisible(false); + participant_label.setKeyListener(null); + participant_label.setBackgroundColor(Color.TRANSPARENT); } else { onboarding = ""; + participant_label.setText(onboarding); } - participant_label.setText(onboarding); + } if (Aware.DEBUG) Log.d(Aware.TAG, "Study URL:" + study_url);