fixed sort of
This commit is contained in:
parent
696c4e4e4b
commit
a88a575e7c
3 changed files with 3 additions and 2 deletions
|
@ -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));
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -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{
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue