Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
YassineBOUJNAH committed Jun 13, 2020
1 parent 09a79a6 commit f337913
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ protected void onBindViewHolder(@NonNull ConfirmedAppointmentsHolder confirmedAp
confirmedAppointmentsHolder.patientName.setText(apointementInformation.getPatientName());
confirmedAppointmentsHolder.appointementType.setText(apointementInformation.getApointementType());

String imageId = FirebaseAuth.getInstance().getCurrentUser().getEmail()+".jpg"; //add a title image
String imageId = apointementInformation.getPatientId()+".jpg"; //add a title image
pathReference = FirebaseStorage.getInstance().getReference().child("DoctorProfile/"+ imageId); //storage the image
pathReference.getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>() {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public void onClick(View v) {
}
});

String imageId = FirebaseAuth.getInstance().getCurrentUser().getEmail()+".jpg"; //add a title image
String imageId = apointementInformation.getPatientId()+".jpg"; //add a title image
pathReference = FirebaseStorage.getInstance().getReference().child("DoctorProfile/"+ imageId); //storage the image
pathReference.getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>() {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public MessageAdapter(@NonNull FirestoreRecyclerOptions<Message> options) {

@Override
protected void onBindViewHolder(@NonNull MessageHolder holder, int position, @NonNull Message model) {
if(model.getUserSender().compareTo(getCurrentUser().getEmail()+"") != 0){
if(model.getUserSender().equals(getCurrentUser().getEmail()+"") ){
//holder.text.setTextSize(20);
//holder.text.setBackgroundColor(0xC0C0C0);
// CoordinatorLayout.LayoutParams lllp= (CoordinatorLayout.LayoutParams) holder.text.getLayoutParams();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void onClick(View v) {
}
});

String imageId = FirebaseAuth.getInstance().getCurrentUser().getEmail()+".jpg"; //add a title image
String imageId = doctor.getEmail()+".jpg"; //add a title image
pathReference = FirebaseStorage.getInstance().getReference().child("DoctorProfile/"+ imageId); //storage the image
pathReference.getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>() {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public void onClick(View v) {
}
});

String imageId = FirebaseAuth.getInstance().getCurrentUser().getEmail()+".jpg"; //add a title image
String imageId = patient.getEmail()+".jpg"; //add a title image
pathReference = FirebaseStorage.getInstance().getReference().child("DoctorProfile/"+ imageId); //storage the image
pathReference.getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>() {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public void onComplete(@NonNull Task<DocumentSnapshot> task) {


//display profile image
String imageId = FirebaseAuth.getInstance().getCurrentUser().getEmail().toString();
String imageId = apointementInformation.getDoctorId();
pathReference = FirebaseStorage.getInstance().getReference().child("DoctorProfile/" + imageId + ".jpg");
pathReference.getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>() {
@Override
Expand Down

0 comments on commit f337913

Please sign in to comment.