fixed availability time formating
This commit is contained in:
parent
4a7c058c5f
commit
94b333ded9
1 changed files with 6 additions and 1 deletions
|
@ -37,7 +37,12 @@ public class ServiceProviderAvailabilities extends AppCompatActivity {
|
||||||
@Override
|
@Override
|
||||||
public void onTimeSet(TimePicker view, int hourOfDay,
|
public void onTimeSet(TimePicker view, int hourOfDay,
|
||||||
int minute) {
|
int minute) {
|
||||||
|
if (minute==0){
|
||||||
|
button.setText(hourOfDay + ":00");
|
||||||
|
}
|
||||||
|
else {
|
||||||
button.setText(hourOfDay + ":" + minute);
|
button.setText(hourOfDay + ":" + minute);
|
||||||
|
}
|
||||||
|
|
||||||
//set availibility for service provider and check start time is less than finish
|
//set availibility for service provider and check start time is less than finish
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue