fixed availability time formating

This commit is contained in:
IvanaE 2018-11-13 22:20:01 -05:00
parent 8408aed8f6
commit b250363f49

View file

@ -37,7 +37,12 @@ public class ServiceProviderAvailabilities extends AppCompatActivity {
@Override
public void onTimeSet(TimePicker view, int hourOfDay,
int minute) {
if (minute==0){
button.setText(hourOfDay + ":00");
}
else {
button.setText(hourOfDay + ":" + minute);
}
//set availibility for service provider and check start time is less than finish
}