fixed availability time formating

This commit is contained in:
IvanaE 2018-11-13 22:20:01 -05:00
parent 4a7c058c5f
commit 94b333ded9

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
}