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

Commit

Permalink
- lock participant onboarding label if one has been pre-determined.
Browse files Browse the repository at this point in the history
  • Loading branch information
denzilferreira committed Mar 28, 2020
1 parent 3147582 commit cc436a9
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit cc436a9

Please sign in to comment.