fixed sort of

This commit is contained in:
IvanaE 2018-11-13 22:11:19 -05:00
parent 696c4e4e4b
commit a88a575e7c
3 changed files with 3 additions and 2 deletions

View file

@ -257,7 +257,7 @@ public class DBHelper extends SQLiteOpenHelper {
}
boolean licensed = serviceProvider.isLicensed();
values.put(COLUMN_LICENSED, licensed);
values.put(COLUMN_LICENSED, Boolean.toString(licensed));
}

View file

@ -40,6 +40,7 @@ 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{

View file

@ -82,7 +82,7 @@
android:layout_width="250dp"
android:layout_height="48dp"
android:layout_weight="1"
android:layout_marginTop="4dp"/>
android:layout_marginTop="5dp"/>
<Button
android:id="@+id/newService"