Skip to content

Commit

Permalink
Fix EditProfilePatient bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyasstrh committed Jun 5, 2020
1 parent e71ce1c commit 9dbf700
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public class EditProfilePatientActivity extends AppCompatActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_edit_profile_doctor);
setContentView(R.layout.activity_edit_profile_patient);
doctorRef = FirebaseFirestore.getInstance();
profileImage = findViewById(R.id.image_profile);
selectImage = findViewById(R.id.select_image);
Expand Down Expand Up @@ -136,7 +136,7 @@ public void onClick(View view) {

/* Update the doctor info in the database */
private void updateDoctorInfos(String name, String address, String phone) {
DocumentReference documentReference = doctorRef.collection("Doctor").document("" + doctorID + "");
DocumentReference documentReference = doctorRef.collection("Patient").document("" + doctorID + "");
documentReference.update("adresse", address);
//documentReference.update("email", email);
documentReference.update("name", name);
Expand Down

0 comments on commit 9dbf700

Please sign in to comment.