Skip to content
This repository has been archived by the owner on Jun 18, 2023. It is now read-only.

Commit

Permalink
- keep participant onboarding label up to date and according to the s…
Browse files Browse the repository at this point in the history
…tudy URL
  • Loading branch information
denzilferreira committed Mar 28, 2020
1 parent 7efc158 commit 3147582
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,13 @@ public void afterTextChanged(Editable s) {
Uri url = Uri.parse(study_url);
onboarding = url.getQueryParameter("participant");
if (onboarding != null) {
participant_label.setText(onboarding);
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);
} else {
onboarding = "";
}
participant_label.setText(onboarding);
}

if (Aware.DEBUG) Log.d(Aware.TAG, "Study URL:" + study_url);
Expand Down

0 comments on commit 3147582

Please sign in to comment.