diff --git a/OlympusServices/app/src/main/java/com/uottawa/olympus/olympusservices/DBHelper.java b/OlympusServices/app/src/main/java/com/uottawa/olympus/olympusservices/DBHelper.java index d7380bd..d4d1f92 100644 --- a/OlympusServices/app/src/main/java/com/uottawa/olympus/olympusservices/DBHelper.java +++ b/OlympusServices/app/src/main/java/com/uottawa/olympus/olympusservices/DBHelper.java @@ -338,7 +338,7 @@ public class DBHelper extends SQLiteOpenHelper { if (address != null && !address.equals(""))values.put(COLUMN_ADDRESS, address); if (phonenumber != null && !phonenumber.equals(""))values.put(COLUMN_PHONE, phonenumber); if (companyname != null && !companyname.equals(""))values.put(COLUMN_COMPANY, companyname); - if (licensed != null)values.put(COLUMN_LICENSED, licensed.booleanValue()); + if (licensed != null)values.put(COLUMN_LICENSED, Boolean.toString(licensed)); return writeDB.update(TABLE_LOGIN, values, COLUMN_USERNAME+" = ?", diff --git a/OlympusServices/app/src/main/java/com/uottawa/olympus/olympusservices/EditProfile.java b/OlympusServices/app/src/main/java/com/uottawa/olympus/olympusservices/EditProfile.java index 94dee11..b673fbc 100644 --- a/OlympusServices/app/src/main/java/com/uottawa/olympus/olympusservices/EditProfile.java +++ b/OlympusServices/app/src/main/java/com/uottawa/olympus/olympusservices/EditProfile.java @@ -75,7 +75,7 @@ public class EditProfile extends AppCompatActivity { if(dbHelper.updateUserInfo(username, password.getText().toString(), firstname.getText().toString(), lastname.getText().toString(), address.getText().toString(), phonenumber.getText().toString(), companyname.getText().toString(), licensed.isChecked())){ - Toast.makeText(this, "Profile has been updated ", Toast.LENGTH_LONG).show(); + Toast.makeText(this, "Profile has been updated", Toast.LENGTH_LONG).show(); } else{ Toast.makeText(this, "Could not update profile ", Toast.LENGTH_LONG).show(); diff --git a/OlympusServices/app/src/main/java/com/uottawa/olympus/olympusservices/SignUpPart2.java b/OlympusServices/app/src/main/java/com/uottawa/olympus/olympusservices/SignUpPart2.java index 2473704..d3b4672 100644 --- a/OlympusServices/app/src/main/java/com/uottawa/olympus/olympusservices/SignUpPart2.java +++ b/OlympusServices/app/src/main/java/com/uottawa/olympus/olympusservices/SignUpPart2.java @@ -40,7 +40,6 @@ public class SignUpPart2 extends AppCompatActivity { ServiceProvider serviceProvider = new ServiceProvider(username, password, firstname, lastname, address, phonenumber, companyname, licensed); if(dbHelper.addUser(serviceProvider)){ - Toast.makeText(this, licensed+":"+((ServiceProvider)dbHelper.findUserByUsername(username)).isLicensed(), Toast.LENGTH_SHORT).show(); startActivity(intent); finish(); }else{