tou a editar o perfil e deixar a pp mais bonita
This commit is contained in:
@@ -39,14 +39,14 @@ public final class AppDatabase_Impl extends AppDatabase {
|
||||
@Override
|
||||
@NonNull
|
||||
protected SupportSQLiteOpenHelper createOpenHelper(@NonNull final DatabaseConfiguration config) {
|
||||
final SupportSQLiteOpenHelper.Callback _openCallback = new RoomOpenHelper(config, new RoomOpenHelper.Delegate(3) {
|
||||
final SupportSQLiteOpenHelper.Callback _openCallback = new RoomOpenHelper(config, new RoomOpenHelper.Delegate(4) {
|
||||
@Override
|
||||
public void createAllTables(@NonNull final SupportSQLiteDatabase db) {
|
||||
db.execSQL("CREATE TABLE IF NOT EXISTS `users` (`uid` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT, `email` TEXT, `password` TEXT, `age` INTEGER NOT NULL, `utenteNumber` TEXT)");
|
||||
db.execSQL("CREATE TABLE IF NOT EXISTS `appointments` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `type` TEXT, `date` TEXT, `time` TEXT, `isPast` INTEGER NOT NULL)");
|
||||
db.execSQL("CREATE TABLE IF NOT EXISTS `users` (`uid` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT, `email` TEXT, `password` TEXT, `age` INTEGER NOT NULL, `utenteNumber` TEXT, `profilePictureUri` TEXT)");
|
||||
db.execSQL("CREATE TABLE IF NOT EXISTS `appointments` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `type` TEXT, `date` TEXT, `time` TEXT, `reason` TEXT, `isPast` INTEGER NOT NULL)");
|
||||
db.execSQL("CREATE TABLE IF NOT EXISTS `medications` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT, `time` TEXT, `dosage` TEXT, `notes` TEXT, `isTaken` INTEGER NOT NULL)");
|
||||
db.execSQL("CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)");
|
||||
db.execSQL("INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'fdb245045e6e5f934b33faff511d4d47')");
|
||||
db.execSQL("INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '2bfd7144258edb6d96f828b5b036c580')");
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -97,13 +97,14 @@ public final class AppDatabase_Impl extends AppDatabase {
|
||||
@NonNull
|
||||
public RoomOpenHelper.ValidationResult onValidateSchema(
|
||||
@NonNull final SupportSQLiteDatabase db) {
|
||||
final HashMap<String, TableInfo.Column> _columnsUsers = new HashMap<String, TableInfo.Column>(6);
|
||||
final HashMap<String, TableInfo.Column> _columnsUsers = new HashMap<String, TableInfo.Column>(7);
|
||||
_columnsUsers.put("uid", new TableInfo.Column("uid", "INTEGER", true, 1, null, TableInfo.CREATED_FROM_ENTITY));
|
||||
_columnsUsers.put("name", new TableInfo.Column("name", "TEXT", false, 0, null, TableInfo.CREATED_FROM_ENTITY));
|
||||
_columnsUsers.put("email", new TableInfo.Column("email", "TEXT", false, 0, null, TableInfo.CREATED_FROM_ENTITY));
|
||||
_columnsUsers.put("password", new TableInfo.Column("password", "TEXT", false, 0, null, TableInfo.CREATED_FROM_ENTITY));
|
||||
_columnsUsers.put("age", new TableInfo.Column("age", "INTEGER", true, 0, null, TableInfo.CREATED_FROM_ENTITY));
|
||||
_columnsUsers.put("utenteNumber", new TableInfo.Column("utenteNumber", "TEXT", false, 0, null, TableInfo.CREATED_FROM_ENTITY));
|
||||
_columnsUsers.put("profilePictureUri", new TableInfo.Column("profilePictureUri", "TEXT", false, 0, null, TableInfo.CREATED_FROM_ENTITY));
|
||||
final HashSet<TableInfo.ForeignKey> _foreignKeysUsers = new HashSet<TableInfo.ForeignKey>(0);
|
||||
final HashSet<TableInfo.Index> _indicesUsers = new HashSet<TableInfo.Index>(0);
|
||||
final TableInfo _infoUsers = new TableInfo("users", _columnsUsers, _foreignKeysUsers, _indicesUsers);
|
||||
@@ -113,11 +114,12 @@ public final class AppDatabase_Impl extends AppDatabase {
|
||||
+ " Expected:\n" + _infoUsers + "\n"
|
||||
+ " Found:\n" + _existingUsers);
|
||||
}
|
||||
final HashMap<String, TableInfo.Column> _columnsAppointments = new HashMap<String, TableInfo.Column>(5);
|
||||
final HashMap<String, TableInfo.Column> _columnsAppointments = new HashMap<String, TableInfo.Column>(6);
|
||||
_columnsAppointments.put("id", new TableInfo.Column("id", "INTEGER", true, 1, null, TableInfo.CREATED_FROM_ENTITY));
|
||||
_columnsAppointments.put("type", new TableInfo.Column("type", "TEXT", false, 0, null, TableInfo.CREATED_FROM_ENTITY));
|
||||
_columnsAppointments.put("date", new TableInfo.Column("date", "TEXT", false, 0, null, TableInfo.CREATED_FROM_ENTITY));
|
||||
_columnsAppointments.put("time", new TableInfo.Column("time", "TEXT", false, 0, null, TableInfo.CREATED_FROM_ENTITY));
|
||||
_columnsAppointments.put("reason", new TableInfo.Column("reason", "TEXT", false, 0, null, TableInfo.CREATED_FROM_ENTITY));
|
||||
_columnsAppointments.put("isPast", new TableInfo.Column("isPast", "INTEGER", true, 0, null, TableInfo.CREATED_FROM_ENTITY));
|
||||
final HashSet<TableInfo.ForeignKey> _foreignKeysAppointments = new HashSet<TableInfo.ForeignKey>(0);
|
||||
final HashSet<TableInfo.Index> _indicesAppointments = new HashSet<TableInfo.Index>(0);
|
||||
@@ -146,7 +148,7 @@ public final class AppDatabase_Impl extends AppDatabase {
|
||||
}
|
||||
return new RoomOpenHelper.ValidationResult(true, null);
|
||||
}
|
||||
}, "fdb245045e6e5f934b33faff511d4d47", "0a9fc99c5381f75f227d7e7f13cc12c1");
|
||||
}, "2bfd7144258edb6d96f828b5b036c580", "54396701591a8f38f350a20a4d12755d");
|
||||
final SupportSQLiteOpenHelper.Configuration _sqliteConfig = SupportSQLiteOpenHelper.Configuration.builder(config.context).name(config.name).callback(_openCallback).build();
|
||||
final SupportSQLiteOpenHelper _helper = config.sqliteOpenHelperFactory.create(_sqliteConfig);
|
||||
return _helper;
|
||||
|
||||
@@ -33,7 +33,7 @@ public final class AppointmentDao_Impl implements AppointmentDao {
|
||||
@Override
|
||||
@NonNull
|
||||
protected String createQuery() {
|
||||
return "INSERT OR ABORT INTO `appointments` (`id`,`type`,`date`,`time`,`isPast`) VALUES (nullif(?, 0),?,?,?,?)";
|
||||
return "INSERT OR ABORT INTO `appointments` (`id`,`type`,`date`,`time`,`reason`,`isPast`) VALUES (nullif(?, 0),?,?,?,?,?)";
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -55,8 +55,13 @@ public final class AppointmentDao_Impl implements AppointmentDao {
|
||||
} else {
|
||||
statement.bindString(4, entity.time);
|
||||
}
|
||||
if (entity.reason == null) {
|
||||
statement.bindNull(5);
|
||||
} else {
|
||||
statement.bindString(5, entity.reason);
|
||||
}
|
||||
final int _tmp = entity.isPast ? 1 : 0;
|
||||
statement.bindLong(5, _tmp);
|
||||
statement.bindLong(6, _tmp);
|
||||
}
|
||||
};
|
||||
}
|
||||
@@ -87,6 +92,7 @@ public final class AppointmentDao_Impl implements AppointmentDao {
|
||||
final int _cursorIndexOfType = CursorUtil.getColumnIndexOrThrow(_cursor, "type");
|
||||
final int _cursorIndexOfDate = CursorUtil.getColumnIndexOrThrow(_cursor, "date");
|
||||
final int _cursorIndexOfTime = CursorUtil.getColumnIndexOrThrow(_cursor, "time");
|
||||
final int _cursorIndexOfReason = CursorUtil.getColumnIndexOrThrow(_cursor, "reason");
|
||||
final int _cursorIndexOfIsPast = CursorUtil.getColumnIndexOrThrow(_cursor, "isPast");
|
||||
final List<Appointment> _result = new ArrayList<Appointment>(_cursor.getCount());
|
||||
while (_cursor.moveToNext()) {
|
||||
@@ -109,11 +115,17 @@ public final class AppointmentDao_Impl implements AppointmentDao {
|
||||
} else {
|
||||
_tmpTime = _cursor.getString(_cursorIndexOfTime);
|
||||
}
|
||||
final String _tmpReason;
|
||||
if (_cursor.isNull(_cursorIndexOfReason)) {
|
||||
_tmpReason = null;
|
||||
} else {
|
||||
_tmpReason = _cursor.getString(_cursorIndexOfReason);
|
||||
}
|
||||
final boolean _tmpIsPast;
|
||||
final int _tmp;
|
||||
_tmp = _cursor.getInt(_cursorIndexOfIsPast);
|
||||
_tmpIsPast = _tmp != 0;
|
||||
_item = new Appointment(_tmpType,_tmpDate,_tmpTime,_tmpIsPast);
|
||||
_item = new Appointment(_tmpType,_tmpDate,_tmpTime,_tmpReason,_tmpIsPast);
|
||||
_item.id = _cursor.getInt(_cursorIndexOfId);
|
||||
_result.add(_item);
|
||||
}
|
||||
@@ -144,6 +156,7 @@ public final class AppointmentDao_Impl implements AppointmentDao {
|
||||
final int _cursorIndexOfType = CursorUtil.getColumnIndexOrThrow(_cursor, "type");
|
||||
final int _cursorIndexOfDate = CursorUtil.getColumnIndexOrThrow(_cursor, "date");
|
||||
final int _cursorIndexOfTime = CursorUtil.getColumnIndexOrThrow(_cursor, "time");
|
||||
final int _cursorIndexOfReason = CursorUtil.getColumnIndexOrThrow(_cursor, "reason");
|
||||
final int _cursorIndexOfIsPast = CursorUtil.getColumnIndexOrThrow(_cursor, "isPast");
|
||||
final List<Appointment> _result = new ArrayList<Appointment>(_cursor.getCount());
|
||||
while (_cursor.moveToNext()) {
|
||||
@@ -166,11 +179,17 @@ public final class AppointmentDao_Impl implements AppointmentDao {
|
||||
} else {
|
||||
_tmpTime = _cursor.getString(_cursorIndexOfTime);
|
||||
}
|
||||
final String _tmpReason;
|
||||
if (_cursor.isNull(_cursorIndexOfReason)) {
|
||||
_tmpReason = null;
|
||||
} else {
|
||||
_tmpReason = _cursor.getString(_cursorIndexOfReason);
|
||||
}
|
||||
final boolean _tmpIsPast;
|
||||
final int _tmp;
|
||||
_tmp = _cursor.getInt(_cursorIndexOfIsPast);
|
||||
_tmpIsPast = _tmp != 0;
|
||||
_item = new Appointment(_tmpType,_tmpDate,_tmpTime,_tmpIsPast);
|
||||
_item = new Appointment(_tmpType,_tmpDate,_tmpTime,_tmpReason,_tmpIsPast);
|
||||
_item.id = _cursor.getInt(_cursorIndexOfId);
|
||||
_result.add(_item);
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ public final class UserDao_Impl implements UserDao {
|
||||
@Override
|
||||
@NonNull
|
||||
protected String createQuery() {
|
||||
return "INSERT OR REPLACE INTO `users` (`uid`,`name`,`email`,`password`,`age`,`utenteNumber`) VALUES (nullif(?, 0),?,?,?,?,?)";
|
||||
return "INSERT OR REPLACE INTO `users` (`uid`,`name`,`email`,`password`,`age`,`utenteNumber`,`profilePictureUri`) VALUES (nullif(?, 0),?,?,?,?,?,?)";
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -61,13 +61,18 @@ public final class UserDao_Impl implements UserDao {
|
||||
} else {
|
||||
statement.bindString(6, entity.utenteNumber);
|
||||
}
|
||||
if (entity.profilePictureUri == null) {
|
||||
statement.bindNull(7);
|
||||
} else {
|
||||
statement.bindString(7, entity.profilePictureUri);
|
||||
}
|
||||
}
|
||||
};
|
||||
this.__updateAdapterOfUser = new EntityDeletionOrUpdateAdapter<User>(__db) {
|
||||
@Override
|
||||
@NonNull
|
||||
protected String createQuery() {
|
||||
return "UPDATE OR ABORT `users` SET `uid` = ?,`name` = ?,`email` = ?,`password` = ?,`age` = ?,`utenteNumber` = ? WHERE `uid` = ?";
|
||||
return "UPDATE OR ABORT `users` SET `uid` = ?,`name` = ?,`email` = ?,`password` = ?,`age` = ?,`utenteNumber` = ?,`profilePictureUri` = ? WHERE `uid` = ?";
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -94,7 +99,12 @@ public final class UserDao_Impl implements UserDao {
|
||||
} else {
|
||||
statement.bindString(6, entity.utenteNumber);
|
||||
}
|
||||
statement.bindLong(7, entity.uid);
|
||||
if (entity.profilePictureUri == null) {
|
||||
statement.bindNull(7);
|
||||
} else {
|
||||
statement.bindString(7, entity.profilePictureUri);
|
||||
}
|
||||
statement.bindLong(8, entity.uid);
|
||||
}
|
||||
};
|
||||
this.__preparedStmtOfDeleteAll = new SharedSQLiteStatement(__db) {
|
||||
@@ -173,6 +183,7 @@ public final class UserDao_Impl implements UserDao {
|
||||
final int _cursorIndexOfPassword = CursorUtil.getColumnIndexOrThrow(_cursor, "password");
|
||||
final int _cursorIndexOfAge = CursorUtil.getColumnIndexOrThrow(_cursor, "age");
|
||||
final int _cursorIndexOfUtenteNumber = CursorUtil.getColumnIndexOrThrow(_cursor, "utenteNumber");
|
||||
final int _cursorIndexOfProfilePictureUri = CursorUtil.getColumnIndexOrThrow(_cursor, "profilePictureUri");
|
||||
final User _result;
|
||||
if (_cursor.moveToFirst()) {
|
||||
final String _tmpName;
|
||||
@@ -203,6 +214,11 @@ public final class UserDao_Impl implements UserDao {
|
||||
}
|
||||
_result = new User(_tmpName,_tmpEmail,_tmpPassword,_tmpAge,_tmpUtenteNumber);
|
||||
_result.uid = _cursor.getInt(_cursorIndexOfUid);
|
||||
if (_cursor.isNull(_cursorIndexOfProfilePictureUri)) {
|
||||
_result.profilePictureUri = null;
|
||||
} else {
|
||||
_result.profilePictureUri = _cursor.getString(_cursorIndexOfProfilePictureUri);
|
||||
}
|
||||
} else {
|
||||
_result = null;
|
||||
}
|
||||
@@ -232,6 +248,7 @@ public final class UserDao_Impl implements UserDao {
|
||||
final int _cursorIndexOfPassword = CursorUtil.getColumnIndexOrThrow(_cursor, "password");
|
||||
final int _cursorIndexOfAge = CursorUtil.getColumnIndexOrThrow(_cursor, "age");
|
||||
final int _cursorIndexOfUtenteNumber = CursorUtil.getColumnIndexOrThrow(_cursor, "utenteNumber");
|
||||
final int _cursorIndexOfProfilePictureUri = CursorUtil.getColumnIndexOrThrow(_cursor, "profilePictureUri");
|
||||
final User _result;
|
||||
if (_cursor.moveToFirst()) {
|
||||
final String _tmpName;
|
||||
@@ -262,6 +279,11 @@ public final class UserDao_Impl implements UserDao {
|
||||
}
|
||||
_result = new User(_tmpName,_tmpEmail,_tmpPassword,_tmpAge,_tmpUtenteNumber);
|
||||
_result.uid = _cursor.getInt(_cursorIndexOfUid);
|
||||
if (_cursor.isNull(_cursorIndexOfProfilePictureUri)) {
|
||||
_result.profilePictureUri = null;
|
||||
} else {
|
||||
_result.profilePictureUri = _cursor.getString(_cursorIndexOfProfilePictureUri);
|
||||
}
|
||||
} else {
|
||||
_result = null;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,92 @@
|
||||
// Generated by view binder compiler. Do not edit!
|
||||
package com.example.cuida.databinding;
|
||||
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.LinearLayout;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.viewbinding.ViewBinding;
|
||||
import androidx.viewbinding.ViewBindings;
|
||||
import com.example.cuida.R;
|
||||
import com.google.android.material.button.MaterialButton;
|
||||
import com.google.android.material.textfield.TextInputEditText;
|
||||
import java.lang.NullPointerException;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
|
||||
public final class DialogChangePasswordBinding implements ViewBinding {
|
||||
@NonNull
|
||||
private final LinearLayout rootView;
|
||||
|
||||
@NonNull
|
||||
public final MaterialButton buttonCancelPassword;
|
||||
|
||||
@NonNull
|
||||
public final MaterialButton buttonSavePassword;
|
||||
|
||||
@NonNull
|
||||
public final TextInputEditText newPassword;
|
||||
|
||||
private DialogChangePasswordBinding(@NonNull LinearLayout rootView,
|
||||
@NonNull MaterialButton buttonCancelPassword, @NonNull MaterialButton buttonSavePassword,
|
||||
@NonNull TextInputEditText newPassword) {
|
||||
this.rootView = rootView;
|
||||
this.buttonCancelPassword = buttonCancelPassword;
|
||||
this.buttonSavePassword = buttonSavePassword;
|
||||
this.newPassword = newPassword;
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
public LinearLayout getRoot() {
|
||||
return rootView;
|
||||
}
|
||||
|
||||
@NonNull
|
||||
public static DialogChangePasswordBinding inflate(@NonNull LayoutInflater inflater) {
|
||||
return inflate(inflater, null, false);
|
||||
}
|
||||
|
||||
@NonNull
|
||||
public static DialogChangePasswordBinding inflate(@NonNull LayoutInflater inflater,
|
||||
@Nullable ViewGroup parent, boolean attachToParent) {
|
||||
View root = inflater.inflate(R.layout.dialog_change_password, parent, false);
|
||||
if (attachToParent) {
|
||||
parent.addView(root);
|
||||
}
|
||||
return bind(root);
|
||||
}
|
||||
|
||||
@NonNull
|
||||
public static DialogChangePasswordBinding bind(@NonNull View rootView) {
|
||||
// The body of this method is generated in a way you would not otherwise write.
|
||||
// This is done to optimize the compiled bytecode for size and performance.
|
||||
int id;
|
||||
missingId: {
|
||||
id = R.id.button_cancel_password;
|
||||
MaterialButton buttonCancelPassword = ViewBindings.findChildViewById(rootView, id);
|
||||
if (buttonCancelPassword == null) {
|
||||
break missingId;
|
||||
}
|
||||
|
||||
id = R.id.button_save_password;
|
||||
MaterialButton buttonSavePassword = ViewBindings.findChildViewById(rootView, id);
|
||||
if (buttonSavePassword == null) {
|
||||
break missingId;
|
||||
}
|
||||
|
||||
id = R.id.new_password;
|
||||
TextInputEditText newPassword = ViewBindings.findChildViewById(rootView, id);
|
||||
if (newPassword == null) {
|
||||
break missingId;
|
||||
}
|
||||
|
||||
return new DialogChangePasswordBinding((LinearLayout) rootView, buttonCancelPassword,
|
||||
buttonSavePassword, newPassword);
|
||||
}
|
||||
String missingId = rootView.getResources().getResourceName(id);
|
||||
throw new NullPointerException("Missing required view with ID: ".concat(missingId));
|
||||
}
|
||||
}
|
||||
@@ -4,6 +4,7 @@ package com.example.cuida.databinding;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.ScrollView;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
@@ -23,6 +24,9 @@ public final class DialogEditProfileBinding implements ViewBinding {
|
||||
@NonNull
|
||||
public final MaterialButton buttonCancel;
|
||||
|
||||
@NonNull
|
||||
public final MaterialButton buttonChangePassword;
|
||||
|
||||
@NonNull
|
||||
public final MaterialButton buttonSave;
|
||||
|
||||
@@ -36,23 +40,24 @@ public final class DialogEditProfileBinding implements ViewBinding {
|
||||
public final TextInputEditText editName;
|
||||
|
||||
@NonNull
|
||||
public final TextInputEditText editPassword;
|
||||
public final ImageView editProfileImage;
|
||||
|
||||
@NonNull
|
||||
public final TextInputEditText editUtente;
|
||||
|
||||
private DialogEditProfileBinding(@NonNull ScrollView rootView,
|
||||
@NonNull MaterialButton buttonCancel, @NonNull MaterialButton buttonSave,
|
||||
@NonNull TextInputEditText editAge, @NonNull TextInputEditText editEmail,
|
||||
@NonNull TextInputEditText editName, @NonNull TextInputEditText editPassword,
|
||||
@NonNull TextInputEditText editUtente) {
|
||||
@NonNull MaterialButton buttonCancel, @NonNull MaterialButton buttonChangePassword,
|
||||
@NonNull MaterialButton buttonSave, @NonNull TextInputEditText editAge,
|
||||
@NonNull TextInputEditText editEmail, @NonNull TextInputEditText editName,
|
||||
@NonNull ImageView editProfileImage, @NonNull TextInputEditText editUtente) {
|
||||
this.rootView = rootView;
|
||||
this.buttonCancel = buttonCancel;
|
||||
this.buttonChangePassword = buttonChangePassword;
|
||||
this.buttonSave = buttonSave;
|
||||
this.editAge = editAge;
|
||||
this.editEmail = editEmail;
|
||||
this.editName = editName;
|
||||
this.editPassword = editPassword;
|
||||
this.editProfileImage = editProfileImage;
|
||||
this.editUtente = editUtente;
|
||||
}
|
||||
|
||||
@@ -89,6 +94,12 @@ public final class DialogEditProfileBinding implements ViewBinding {
|
||||
break missingId;
|
||||
}
|
||||
|
||||
id = R.id.button_change_password;
|
||||
MaterialButton buttonChangePassword = ViewBindings.findChildViewById(rootView, id);
|
||||
if (buttonChangePassword == null) {
|
||||
break missingId;
|
||||
}
|
||||
|
||||
id = R.id.button_save;
|
||||
MaterialButton buttonSave = ViewBindings.findChildViewById(rootView, id);
|
||||
if (buttonSave == null) {
|
||||
@@ -113,9 +124,9 @@ public final class DialogEditProfileBinding implements ViewBinding {
|
||||
break missingId;
|
||||
}
|
||||
|
||||
id = R.id.edit_password;
|
||||
TextInputEditText editPassword = ViewBindings.findChildViewById(rootView, id);
|
||||
if (editPassword == null) {
|
||||
id = R.id.edit_profile_image;
|
||||
ImageView editProfileImage = ViewBindings.findChildViewById(rootView, id);
|
||||
if (editProfileImage == null) {
|
||||
break missingId;
|
||||
}
|
||||
|
||||
@@ -125,8 +136,8 @@ public final class DialogEditProfileBinding implements ViewBinding {
|
||||
break missingId;
|
||||
}
|
||||
|
||||
return new DialogEditProfileBinding((ScrollView) rootView, buttonCancel, buttonSave, editAge,
|
||||
editEmail, editName, editPassword, editUtente);
|
||||
return new DialogEditProfileBinding((ScrollView) rootView, buttonCancel, buttonChangePassword,
|
||||
buttonSave, editAge, editEmail, editName, editProfileImage, editUtente);
|
||||
}
|
||||
String missingId = rootView.getResources().getResourceName(id);
|
||||
throw new NullPointerException("Missing required view with ID: ".concat(missingId));
|
||||
|
||||
@@ -4,6 +4,7 @@ package com.example.cuida.databinding;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
import androidx.annotation.NonNull;
|
||||
@@ -32,6 +33,9 @@ public final class FragmentProfileBinding implements ViewBinding {
|
||||
@NonNull
|
||||
public final TextView profileEmail;
|
||||
|
||||
@NonNull
|
||||
public final ImageView profileImage;
|
||||
|
||||
@NonNull
|
||||
public final TextView profileName;
|
||||
|
||||
@@ -40,13 +44,14 @@ public final class FragmentProfileBinding implements ViewBinding {
|
||||
|
||||
private FragmentProfileBinding(@NonNull LinearLayout rootView,
|
||||
@NonNull MaterialButton buttonEditProfile, @NonNull MaterialButton buttonLogout,
|
||||
@NonNull TextView profileAge, @NonNull TextView profileEmail, @NonNull TextView profileName,
|
||||
@NonNull TextView profileUtente) {
|
||||
@NonNull TextView profileAge, @NonNull TextView profileEmail, @NonNull ImageView profileImage,
|
||||
@NonNull TextView profileName, @NonNull TextView profileUtente) {
|
||||
this.rootView = rootView;
|
||||
this.buttonEditProfile = buttonEditProfile;
|
||||
this.buttonLogout = buttonLogout;
|
||||
this.profileAge = profileAge;
|
||||
this.profileEmail = profileEmail;
|
||||
this.profileImage = profileImage;
|
||||
this.profileName = profileName;
|
||||
this.profileUtente = profileUtente;
|
||||
}
|
||||
@@ -102,6 +107,12 @@ public final class FragmentProfileBinding implements ViewBinding {
|
||||
break missingId;
|
||||
}
|
||||
|
||||
id = R.id.profile_image;
|
||||
ImageView profileImage = ViewBindings.findChildViewById(rootView, id);
|
||||
if (profileImage == null) {
|
||||
break missingId;
|
||||
}
|
||||
|
||||
id = R.id.profile_name;
|
||||
TextView profileName = ViewBindings.findChildViewById(rootView, id);
|
||||
if (profileName == null) {
|
||||
@@ -115,7 +126,7 @@ public final class FragmentProfileBinding implements ViewBinding {
|
||||
}
|
||||
|
||||
return new FragmentProfileBinding((LinearLayout) rootView, buttonEditProfile, buttonLogout,
|
||||
profileAge, profileEmail, profileName, profileUtente);
|
||||
profileAge, profileEmail, profileImage, profileName, profileUtente);
|
||||
}
|
||||
String missingId = rootView.getResources().getResourceName(id);
|
||||
throw new NullPointerException("Missing required view with ID: ".concat(missingId));
|
||||
|
||||
@@ -13,6 +13,7 @@ import androidx.recyclerview.widget.RecyclerView;
|
||||
import androidx.viewbinding.ViewBinding;
|
||||
import androidx.viewbinding.ViewBindings;
|
||||
import com.example.cuida.R;
|
||||
import com.google.android.material.textfield.TextInputEditText;
|
||||
import java.lang.NullPointerException;
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
@@ -27,15 +28,19 @@ public final class FragmentScheduleAppointmentBinding implements ViewBinding {
|
||||
@NonNull
|
||||
public final DatePicker datePicker;
|
||||
|
||||
@NonNull
|
||||
public final TextInputEditText editReason;
|
||||
|
||||
@NonNull
|
||||
public final RecyclerView recyclerTimeSlots;
|
||||
|
||||
private FragmentScheduleAppointmentBinding(@NonNull LinearLayout rootView,
|
||||
@NonNull Button btnConfirmAppointment, @NonNull DatePicker datePicker,
|
||||
@NonNull RecyclerView recyclerTimeSlots) {
|
||||
@NonNull TextInputEditText editReason, @NonNull RecyclerView recyclerTimeSlots) {
|
||||
this.rootView = rootView;
|
||||
this.btnConfirmAppointment = btnConfirmAppointment;
|
||||
this.datePicker = datePicker;
|
||||
this.editReason = editReason;
|
||||
this.recyclerTimeSlots = recyclerTimeSlots;
|
||||
}
|
||||
|
||||
@@ -78,6 +83,12 @@ public final class FragmentScheduleAppointmentBinding implements ViewBinding {
|
||||
break missingId;
|
||||
}
|
||||
|
||||
id = R.id.edit_reason;
|
||||
TextInputEditText editReason = ViewBindings.findChildViewById(rootView, id);
|
||||
if (editReason == null) {
|
||||
break missingId;
|
||||
}
|
||||
|
||||
id = R.id.recycler_time_slots;
|
||||
RecyclerView recyclerTimeSlots = ViewBindings.findChildViewById(rootView, id);
|
||||
if (recyclerTimeSlots == null) {
|
||||
@@ -85,7 +96,7 @@ public final class FragmentScheduleAppointmentBinding implements ViewBinding {
|
||||
}
|
||||
|
||||
return new FragmentScheduleAppointmentBinding((LinearLayout) rootView, btnConfirmAppointment,
|
||||
datePicker, recyclerTimeSlots);
|
||||
datePicker, editReason, recyclerTimeSlots);
|
||||
}
|
||||
String missingId = rootView.getResources().getResourceName(id);
|
||||
throw new NullPointerException("Missing required view with ID: ".concat(missingId));
|
||||
|
||||
@@ -22,6 +22,9 @@ public final class ItemAppointmentBinding implements ViewBinding {
|
||||
@NonNull
|
||||
public final TextView textDate;
|
||||
|
||||
@NonNull
|
||||
public final TextView textReason;
|
||||
|
||||
@NonNull
|
||||
public final TextView textTime;
|
||||
|
||||
@@ -29,9 +32,10 @@ public final class ItemAppointmentBinding implements ViewBinding {
|
||||
public final TextView textType;
|
||||
|
||||
private ItemAppointmentBinding(@NonNull MaterialCardView rootView, @NonNull TextView textDate,
|
||||
@NonNull TextView textTime, @NonNull TextView textType) {
|
||||
@NonNull TextView textReason, @NonNull TextView textTime, @NonNull TextView textType) {
|
||||
this.rootView = rootView;
|
||||
this.textDate = textDate;
|
||||
this.textReason = textReason;
|
||||
this.textTime = textTime;
|
||||
this.textType = textType;
|
||||
}
|
||||
@@ -69,6 +73,12 @@ public final class ItemAppointmentBinding implements ViewBinding {
|
||||
break missingId;
|
||||
}
|
||||
|
||||
id = R.id.text_reason;
|
||||
TextView textReason = ViewBindings.findChildViewById(rootView, id);
|
||||
if (textReason == null) {
|
||||
break missingId;
|
||||
}
|
||||
|
||||
id = R.id.text_time;
|
||||
TextView textTime = ViewBindings.findChildViewById(rootView, id);
|
||||
if (textTime == null) {
|
||||
@@ -81,7 +91,8 @@ public final class ItemAppointmentBinding implements ViewBinding {
|
||||
break missingId;
|
||||
}
|
||||
|
||||
return new ItemAppointmentBinding((MaterialCardView) rootView, textDate, textTime, textType);
|
||||
return new ItemAppointmentBinding((MaterialCardView) rootView, textDate, textReason, textTime,
|
||||
textType);
|
||||
}
|
||||
String missingId = rootView.getResources().getResourceName(id);
|
||||
throw new NullPointerException("Missing required view with ID: ".concat(missingId));
|
||||
|
||||
Reference in New Issue
Block a user