From f5bc54316a7f3ab2f139275da9c13261a8dbc757 Mon Sep 17 00:00:00 2001 From: IvanaE Date: Tue, 30 Oct 2018 11:16:56 -0400 Subject: [PATCH] made it pretty --- .../main/java/com/uottawa/olympus/olympusservices/SignUp.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OlympusServices/app/src/main/java/com/uottawa/olympus/olympusservices/SignUp.java b/OlympusServices/app/src/main/java/com/uottawa/olympus/olympusservices/SignUp.java index bedc52c..d4d8e38 100644 --- a/OlympusServices/app/src/main/java/com/uottawa/olympus/olympusservices/SignUp.java +++ b/OlympusServices/app/src/main/java/com/uottawa/olympus/olympusservices/SignUp.java @@ -15,7 +15,7 @@ public class SignUp extends AppCompatActivity { super.onCreate(savedInstanceState); setContentView(R.layout.activity_sign_up); MaterialSpinner spinner = findViewById(R.id.RoleInput); - spinner.setItems("HomeOwner", "Service Provider"); + spinner.setItems("Home Owner", "Service Provider"); spinner.setOnItemSelectedListener(new MaterialSpinner.OnItemSelectedListener() { @Override public void onItemSelected(MaterialSpinner view, int position, long id, String item) { @@ -36,7 +36,7 @@ public class SignUp extends AppCompatActivity { if(username.length()>=5 && password.length()>5 && firstname.length()>0 && lastname.length()>0 && username.matches("[a-zA-Z0-9]*") && password.matches("[a-zA-Z0-9]*") && firstname.matches("[a-zA-Z]*") && lastname.matches("[a-zA-Z]*")){ switch(spinner.getText().toString()){ - case "HomeOwner": + case "Home Owner": newUser = new HomeOwner(username,password,firstname,lastname); break; case "Service Provider":