Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
YassineBOUJNAH committed Jun 9, 2020
1 parent 57d863b commit 5cc6d4e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ public void onSuccess(Void aVoid) {
public void onClick(View v) {
doc= doctor.getEmail();
Common.CurreentDoctor = doctor.getEmail();
Common.CurrentDoctorName = doctor.getName();
Common.CurrentPhone = doctor.getTel();
openPage(v.getContext());

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,10 @@ protected void onCreate(Bundle savedInstanceState) {
String newAccountType = spinner.getSelectedItem().toString();

spinner.setOnItemSelectedListener(new OnItemSelectedListener() {
String selected = spinner.getSelectedItem().toString();
@Override
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
String selected = spinner.getSelectedItem().toString();
Log.e(TAG, "onItemSelected:" + selected);
if (selected.equals("Doctor")) {
specialiteList.setVisibility(View.VISIBLE);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ protected void onCreate(Bundle savedInstanceState) {
public void onSuccess(DocumentSnapshot documentSnapshot) {
weightBtn.setText( ""+documentSnapshot.getString("weight"));
heightBtn.setText( ""+documentSnapshot.getString("height"));
if(documentSnapshot.getString("bloodType") != null)
specialiteList.setSelection(convertBloodToInt(documentSnapshot.getString("bloodType")));
}
});
Expand Down

0 comments on commit 5cc6d4e

Please sign in to comment.